Parameter
It is a salted password hashing mechanism that takes an input and hashes it into a fixed size output.
GenerateSCryptHash(plaintext, options)
ColdFusion (2021 release): Added this function.
Parameter |
Description |
---|---|
plaintext |
(Required) The input string on which the hash function must be run. |
options |
(Optional) A struct with the following values:
|
<cfscript> stringToEncrypt="Sample string" options = StructNew() options.cpucost = 1024 options.memorycost = 64 options.keylength = 16 options.saltlength = 8 sCrypted=GenerateSCryptHash(stringToEncrypt,options) writeDump(sCrypted) </cfscript>
$a4001$8JYS8K/7sqs=$KKlE7vRLJgYaP/RZhL9f7w==
Sign in to your account