"Sputnik" help  
Sputnik Help
HashAlgos()

Description

Returns an array containing the names of all supported hashing algorithms.

Parameters

None.

Return Value

Success: Returns an array containing the names of all supported hashing algorithms.
Failure: Returns en empty array.

Remarks

The HashAlgos function is used to retrieve a list of all hashing algorithms supported by the system.

Here is a list of the Algos it should output:

// crc32 -- Cyclic Redundancy Check with a 32-bit hash size.
// crc32b -- Cyclic Redundancy Check with a 32-bit hash size using the reversed polynomial.
// md2 -- MD2 algorithm with a 128-bit hash size.
// md4 -- MD4 algorithm with a 128-bit hash size.
// md5 -- MD5 algorithm with a 128-bit hash size.
// gost -- GOST algorithm with a 256-bit hash size.
// streebog/256 -- Streebog algorithm with a 256-bit hash size.
// streebog/512 -- Streebog algorithm with a 512-bit hash size.
// tiger -- Tiger algorithm with a 192-bit hash size.
// adler32 -- Adler-32 checksum with a 32-bit hash size.
// sha3/224 -- SHA-3 algorithm with a 224-bit hash size.
// sha3/256 -- SHA-3 algorithm with a 256-bit hash size.
// sha3/384 -- SHA-3 algorithm with a 384-bit hash size.
// sha3/512 -- SHA-3 algorithm with a 512-bit hash size.
// sha224 -- SHA-2 algorithm with a 224-bit hash size.
// sha256 -- SHA-2 algorithm with a 256-bit hash size.
// sha384 -- SHA-2 algorithm with a 384-bit hash size.
// sha512 -- SHA-2 algorithm with a 512-bit hash size.
// shake/128 -- SHAKE algorithm with variable-length output
// shake/256 -- SHAKE algorithm with variable-length output
// ripemd128 -- RIPEMD algorithm with a 128-bit hash size.
// ripemd160 -- RIPEMD algorithm with a 160-bit hash size.
// ripemd256 -- RIPEMD algorithm with a 256-bit hash size.
// ripemd320 -- RIPEMD algorithm with a 320-bit hash size.
// whirlpool -- Whirlpool algorithm with a 512-bit hash size.
// photon -- Photon algorithm with a 256-bit hash size.
// sparkle/256 -- Sparkle algorithm with a 256-bit hash size.
// sparkle/384 -- Sparkle algorithm with a 384-bit hash size.
// haraka/256 -- Haraka algorithm with a 256-bit hash size.
// haraka/512 -- Haraka algorithm with a 512-bit hash size.
// xoodyak -- Xoodyak algorithm with a 256-bit hash size.
// dstu7564/256 -- DSTU7564 algorithm with a 256-bit hash size.
// dstu7564/384 -- DSTU7564 algorithm with a 384-bit hash size.
// dstu7564/512 -- DSTU7564 algorithm with a 512-bit hash size.
// skein/256 -- Skein algorithm with a 256-bit hash size.
// skein/512 -- Skein algorithm with a 512-bit hash size.
// skein/1024 -- Skein algorithm with a 1024-bit hash size.
// sm3 -- SM3 algorithm with a 256-bit hash size.
// isap -- ISAP algorithm with a 512-bit hash size.
// ascon -- Ascon algorithm with a 320-bit hash size.
// ascon/a -- Ascon algorithm with associated data and a 320-bit hash size.
// asconx -- AsconX algorithm with a 320-bit hash size.
// asconx/a -- AsconX algorithm with associated data and a 320-bit hash size.
// fnv132 -- FNV-1a algorithm with a 32-bit hash size.
// fnv1a32 -- FNV-1a algorithm with a 32-bit hash size.
// fnv164 -- FNV-1a algorithm with a 64-bit hash size.
// fnv1a64 -- FNV-1a algorithm with a 64-bit hash size.
// blake3/32 -- BLAKE3 algorithm with a 32-bit hash size.
// blake3/64 -- BLAKE3 algorithm with a 64-bit hash size.
// blake3/96 -- BLAKE3 algorithm with a 96-bit hash size.
// blake3/128 -- BLAKE3 algorithm with a 128-bit hash size.
// blake3/160 -- BLAKE3 algorithm with a 160-bit hash size.
// blake3/192 -- BLAKE3 algorithm with a 192-bit hash size.
// blake3/224 -- BLAKE3 algorithm with a 224-bit hash size.
// blake3/256 -- BLAKE3 algorithm with a 256-bit hash size.
// blake3/512 -- BLAKE3 algorithm with a 512-bit hash size.
// sha512t/32 -- SHA-512/t algorithm with a 32-bit hash size.
// sha512t/64 -- SHA-512/t algorithm with a 64-bit hash size.
// sha512t/96 -- SHA-512/t algorithm with a 96-bit hash size.
// sha512t/128 -- SHA-512/t algorithm with a 128-bit hash size.
// sha512t/160 -- SHA-512/t algorithm with a 160-bit hash size.
// sha512t/192 -- SHA-512/t algorithm with a 192-bit hash size.
// sha512t/224 -- SHA-512/t algorithm with a 224-bit hash size.
// sha512t/256 -- SHA-512/t algorithm with a 256-bit hash size.
// sha512t/288 -- SHA-512/t algorithm with a 288-bit hash size.
// sha512t/320 -- SHA-512/t algorithm with a 320-bit hash size.
// sha512t/352 -- SHA-512/t algorithm with a 352-bit hash size.
// sha512t/416 -- SHA-512/t algorithm with a 416-bit hash size.
// sha512t/448 -- SHA-512/t algorithm with a 448-bit hash size.
// sha512t/480 -- SHA-512/t algorithm with a 480-bit hash size.
// enigma/64 -- Enigma algorithm with a 64-bit hash size.
// enigma/128 -- Enigma algorithm with a 128-bit hash size.
// enigma/256 -- Enigma algorithm with a 256-bit hash size.
// enigma/512 -- Enigma algorithm with a 512-bit hash size.
// enigma/1024 -- Enigma algorithm with a 1024-bit hash size.

See Hash to use these algos.

Related

Example

Example of usage:

printr HashAlgos();
// PRINTS
// Array
// (
//     [0] => crc32
//     [1] => crc32b
//     [2] => md2
//     [3] => md4
//     [4] => md5
//     [5] => gost
//     [6] => streebog/256
//     [7] => streebog/512
//     [8] => tiger
//     [9] => adler32
//     [10] => sha3/224
//     [11] => sha3/256
//     [12] => sha3/384
//     [13] => sha3/512
//     [14] => sha224
//     [15] => sha256
//     [16] => sha384
//     [17] => sha512
//     [18] => shake/128
//     [19] => shake/256
//     [20] => ripemd128
//     [21] => ripemd160
//     [22] => ripemd256
//     [23] => ripemd320
//     [24] => whirlpool
//     [25] => photon
//     [26] => sparkle/256
//     [27] => sparkle/384
//     [28] => haraka/256
//     [29] => haraka/512
//     [30] => xoodyak
//     [31] => dstu7564/256
//     [32] => dstu7564/384
//     [33] => dstu7564/512
//     [34] => skein/256
//     [35] => skein/512
//     [36] => skein/1024
//     [37] => sm3
//     [38] => isap
//     [39] => ascon
//     [40] => ascon/a
//     [41] => asconx
//     [42] => asconx/a
//     [43] => fnv132
//     [44] => fnv1a32
//     [45] => fnv164
//     [46] => fnv1a64
//     [47] => blake3/32
//     [48] => blake3/64
//     [49] => blake3/96
//     [50] => blake3/128
//     [51] => blake3/160
//     [52] => blake3/192
//     [53] => blake3/224
//     [54] => blake3/256
//     [55] => blake3/512
//     [56] => sha512t/32
//     [57] => sha512t/64
//     [58] => sha512t/96
//     [59] => sha512t/128
//     [60] => sha512t/160
//     [61] => sha512t/192
//     [62] => sha512t/224
//     [63] => sha512t/256
//     [64] => sha512t/288
//     [65] => sha512t/320
//     [66] => sha512t/352
//     [67] => sha512t/416
//     [68] => sha512t/448
//     [69] => sha512t/480
//     [70] => enigma/64
//     [71] => enigma/128
//     [72] => enigma/256
//     [73] => enigma/512
//     [74] => enigma/1024
// )

In this example, the HashAlgos function is used to obtain an array of supported hashing algorithms.


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org