Aller au contenu principal

md5

Calculates the md5 hash of a string.

MD5

NAME

md5 - Calculates the md5 hash of a string.

SYNOPSIS

md5(string)

DESCRIPTION

This is a cryptographic hash injective function. It is used to transform a string into a 32-characters hexadecimal number.  This function calculates the message digest-5 of a string. It is a cryptographic hash function used to verify data integrity. A hash function is used to map digital data of some size to digital data with a fixed size. When cryptographic hash function is encountered, it is almost impossible to recreate the input data from the output data, the hash value. It produces a 128-bit hash value.

PARAMETERS

string
The input string.

RETURN

It returns the hash as a 32-characters hexadecimal number.

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

in:  res={_{md5("md5")}}.
out: res=1bc29b36f623ba82aaf6724fd3b16718.

in:  res={_{md5("")}}.
out: res=d41d8cd98f00b204e9800998ecf8427e.

SEE ALSO

{{ include("includes/strings.sn") }}

{{ include("includes/cryptography.sn") }}

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.