User:Prawsthorne/StepxStep: Difference between revisions

Line 132: Line 132:
  {  });">, claim your badge.</a>
  {  });">, claim your badge.</a>
</pre>
</pre>
One of the issues with the plain text nature of json files and massages is that private information can be exposed. One of the features of the OBI is its ability to recognize hashed text to confirm the earner without having to expose their email address int he json file. The following code php code snippet hashes the earners email with a salt value using sha256 encryption. This is a one way hash, so you can't "unhash" it. To confirm this value you would need the
<pre>
<?php
<?php
     echo hash("sha256", "peter@example.com"."mwach01");
     echo hash("sha256", "peter@example.com"."mwach01");
1,065

edits