Located at: lib/js/framework/smart-framework.pak.js; crypt_utils.js
Package: Sf.Javascript:Crypto
Class Name: smartJ$CryptoHash
Frozen: Yes
Version: 20220730
Usage: smartJ$CryptoHash.method();
Throws: smartJ$TestCrypto.raiseError
Depends: smartJ$Utils, smartJ$TestCrypto
class Methods
public staticfunctioncrc32b (
{String}s,
{Boolean}b36
) {} . {String}
@throws: console.error
@return: {String} The CRC32B hash of the string
@param: {String} s The string
@param: {Boolean} b36 If set to TRUE will use Base36 Encoding instead of Hex Encoding
Returns the CRC32B hash of a string
public staticfunctionmd5 (
{String}s,
{Boolean}b64
) {} . {String}
@throws: console.error
@return: {String} The MD5 hash of the string
@param: {String} s The string
@param: {Boolean} b64 If set to TRUE will use Base64 Encoding instead of Hex Encoding
Returns the MD5 hash of a string
public staticfunctionsha1 (
{String}s,
{Boolean}b64
) {} . {String}
@throws: console.error
@return: {String} The SHA1 hash of the string
@param: {String} s The string
@param: {Boolean} b64 If set to TRUE will use Base64 Encoding instead of Hex Encoding
Returns the SHA1 hash of a string
public staticfunctionsha512 (
{String}s,
{Boolean}b64
) {} . {String}
@throws: console.error
@return: {String} The SHA512 hash of the string
@param: {String} s The string
@param: {Boolean} b64 If set to TRUE will use Base64 Encoding instead of Hex Encoding
Returns the SHA512 hash of a string
public staticfunctionsha256 (
{String}s,
{Boolean}b64
) {} . {String}
@throws: console.error
@return: {String} The SHA256 hash of the string
@param: {String} s The string
@param: {Boolean} b64 If set to TRUE will use Base64 Encoding instead of Hex Encoding
Returns the SHA256 hash of a string
class Properties
class Constants
documentation generated on: 2023-10-19 23:19:05 +0000
Crypto Hash for JavaScript: CRC32B / MD5 / SHA1 / SHA256 / SHA512 :: (Hex / B64)