Security Functions

namedescription
decryptDecrypts a string that is encrypted using a standard encryption technique, including strings encrypted by the Encrypt function.
decryptBinaryDecrypts encrypted binary data with the specified key, value, algorithm, salt, and iterations.
encryptEncrypts a string using a specific algorithm and encoding method.
encryptBinaryEncrypts binary data using a specific algorithm and encoding method.
generateSecretKeyGets a secure key value for use in the Encrypt function.
getAuthUserGets the name of an authenticated user.
getUserRolesRetrieves the list of roles for the current user. This function returns only ColdFusion roles, not roles set for the servlet API.
hashConverts a variable-length string to a fixed-length string that can act as a “fingerprint” or unique identifier for the original string. It is not possible to convert the hash result back to the source string.
isUserInAnyRoleDetermines whether an authenticated user belongs to any role in a list of roles.
isUserInRoleDetermines whether an authenticated user belongs to the specified Role.
isUserLoggedInDetermines whether a user is logged in.
randGenerates a pseudo-random number.
randomizeSeeds the pseudo-random number generator with an integer number, ensuring repeatable number patterns.
randRangeGenerates a pseudo-random integer in the range between two specified numbers.
verifyClientRequires remote invocations of the page or calls to functions on the page to include an encrypted security token.