Fonctionnalités de la librairie jsFF

Documentation de la librairie jsFF : cryptographie

jsFF permet de générer des hachages cryptographiques selon les standards MD4, MD5 et SHA1, en utilisant les fonctions suivantes :

Fonctions MD4exempletest
hex_md4(chaine)
jsFF.hex_md4('abc')
retourne a448017aaf21d8525fc10ae87aa6729d ()
b64_md4(chaine)
jsFF.b64_md4('abc')
retourne .
str_md4(chaine)
jsFF.str_md4('abc')
retourne .
hex_hmac_md4(clé, chaine)
jsFF.hex_hmac_md4('123','abc')
retourne .
b64_hmac_md4(clé, chaine)
jsFF.b64_hmac_md4('123','abc')
retourne .
str_hmac_md4(clé, chaine)
jsFF.str_hmac_md4('123','abc')
retourne .
 
Fonctions MD5exempletest
hex_md5(chaine)
jsFF.hex_md5('abc')
retourne 900150983cd24fb0d6963f7d28e17f72 ()
b64_md5(chaine)
jsFF.b64_md5('abc')
retourne .
str_md5(chaine)
jsFF.str_md5('abc')
retourne .
hex_hmac_md5(clé, chaine)
jsFF.hex_hmac_md5('123','abc')
retourne .
b64_hmac_md5(clé, chaine)
jsFF.b64_hmac_md5('123','abc')
retourne .
str_hmac_md5(clé, chaine)
jsFF.str_hmac_md5('123','abc')
retourne .
 
Fonctions SHA1exempletest
hex_sha1(chaine)
jsFF.hex_sha1('abc')
retourne a9993e364706816aba3e25717850c26c9cd0d89d ()
b64_sha1(chaine)
jsFF.b64_sha1('abc')
retourne .
str_sha1(chaine)
jsFF.str_sha1('abc')
retourne .
hex_hmac_sha1(clé, chaine)
jsFF.hex_hmac_sha1('123','abc')
retourne .
b64_hmac_sha1(clé, chaine)
jsFF.b64_hmac_sha1('123','abc')
retourne .
str_hmac_sha1(clé, chaine)
jsFF.str_hmac_sha1('123','abc')
retourne .