Problem using Crypto API
Content
Hi all,
We are trying to use the Crypto API to hash a key on a customer portal php page. The problem we are facing is that everything works good while being viewed in the development area, but after promoted and being viewed in production, we are receiving the following error(s):
Invalid ID: ID could not be resolved from the LookupName[(0)]; MessageDigest.Encoding.IDInvalid ID: ID could not be resolved from the LookupName[(0)];
I've included a code snippet of the relevant code below.
Thanks
Version
May 2017Code Snippet
while($row=$accounts->next()){ foreach($row as $account){ try{ $md = new RightNow\Connect\Crypto\v1_3\MessageDigest(); $md->Algorithm->ID = 3; //SHA256 $md->Text = $account . $strKey; $md->Encoding->LookupName = "NONE"; //echo "Data : " .$md->Text . "<br>"; $md->hash(); $hashed_text = $md->HashText; //echo "Output : " .bin2Hex($hashed_text)."<br>";
0