Smart.Framework Logo

static class smartJ$CryptoHash
{ } .

CLASS :: Smart CryptoHash (ES6, Strict Mode)
Crypto Hash for JavaScript: CRC32B / MD5 / SHA1 / SHA256 / SHA512 :: (Hex / B64)


class Methods

public static function crc32b ( {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 static function md5 ( {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 static function sha1 ( {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 static function sha512 ( {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 static function sha256 ( {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


Smart.Framework © 2009-2023 unix-world.org