Lasso Soft Inc. > Home

[ encrypt_md5 ]

Method

[Encrypt_MD5] generates a 128 bit hash value for a string. Accepts one parameter, a string to be encrypted.

The MD5 hash value is a 128 bit string that identifies the input string. This is a one way operation. There is no way to 'decrypt' the hash value back into the input string.

Passwords can be stored by generating an MD5 hash value for each password and storing it instead of the plaintext password. In order to validate a password, the input from the site visitor is also used to generate an MD5 hash value and then the new hash value is compared to the stored hash value. If they match, the password given was the same as the password which is being stored.

  • Syntax
Encrypt_MD5( 'Hash Value')
Examples
  • Beginner

To generate an MD5 hash value for a string:

Use the [Encrypt_MD5] method. The following example shows how to create an MD5 hash value for a string.

Code

Encrypt_MD5('The quick brown fox jumped over the running rhino.')

Result

49f8b7150c1b2fe242f2adee35f8139b

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft