Hashing Values

The Hashtag Framework supports all of the Hash algorithms supported by PHP  (default "sha256")

An optional Salt protects against Rainbow Table attacks.

The following HTML Form posts back to this page, setting the value and salt in the URL.



Note:  Hashtag Markup is shown below <# in bold #>.   The value generated by processing the Hashtag Markup, and applying any Variable Contexts, is injected into this HTML page after the ⇒ symbol.  
<#[url.value as hash]#> ⇒  e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
<#[url.value as hash using "sha256"]#> ⇒  e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
<#[url.value as hash using "sha256" salted by "My Salt"]#> ⇒  d25af2352a23cd01c4c77437897ef16b35d274e4f9dab660db42975ad98cad32
<#[url.value as hash salted by url.salt]#> ⇒  e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
<#[url.value as hash using "md5" salted by "My Salt"]#> ⇒  c1394ba967c66b0fcecee3727fea0975
<#[url.value as hash using "md5" salted by url.salt]#> ⇒  d41d8cd98f00b204e9800998ecf8427e
<#[url.value as hash salted by url.salt using "sha1"]#> ⇒  da39a3ee5e6b4b0d3255bfef95601890afd80709
<#[url.value as hash salted by "My Salt" using "sha1"]#> ⇒  fd0379c9bd34f73b1637722f25e1f3a43e8b9fe5


Note:  When hashing passwords, salting with the user ID ensures distinct hashes for reused passwords

The Hashtag Markup Language provides Contexts for reformatting Variable values.  

The examples in this section cover the many Contexts the Hashtag Framework supports to alter Variable values.