DescriptionReturns hex-encoded text which was "scrambled" with the Secure Hash Algorithm using 256 bits for extra scrambly goodness. The %sha256 function is a standard, secure algorithm for "scrambling" text so that anyone who knows the original can perform verification without transmiting the original. This algorithm is portable and available in any language and environment.
Rather than storing passwords in a database, store the %sha256() hashed username and password as a unique "id". Then, when a person logs in you check to see if their "id" is in the database. This way you can run an anonymous, secure database, where nobody, not even the DBA, can get access to a users password! Like so: %sha256(%username%%password%)
%sha256(hello) 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 is shorthand for %digest(sha256,hello) 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
See Alsosha | md5 | digest