LassoScript Utility
Basics Browse Detail

[Encrypt_MD5]

Tag Link [Encrypt_MD5] Category Encryption
Type Substitution Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type String Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[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']

Parameters

Required Parameters
Hash Value The string for which an MD5 hash should be generated.

Examples

To generate an MD5 hash value for a string:

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

[Encrypt_MD5: 'The quick brown fox jumped over the lazy dog.']

5c6ffbdd40d9556b73a21e63c3e0e904