To use the GC Wizard Hash functions GCW Script implemented the HASH function.
The function HASH needs following parameter:
- HASH function
- Bitrate
- Use of a key
- Key
- Text
Parameter
Parameter | Typ | Meaning |
HASH function | String | The identifier for the Has function which sould be used: – MD2, MD4, MD5 – SHA, SHA1, SHA3 – BLAKE2B – KECCAK – RIPEMD – TIGER – WHIRLPOOL |
Bitrate | Number | – SHA: 224, 256, 384, 512 – SHA3: 224, 256, 384, 512 – BLAKE2B: 160, 224, 256, 384, 512 – KECCAK: 128, 224, 256, 288, 384, 512 – RIPEMED: 128, 160, 256, 320 |
Use of a key | Number: 0 or 1 | Some Hash functions could use an additional key: MD2, MD4, MD5, SHA, SHA1, SHA3, TIGER, WHIRLPOOL. 0: no additional key 1: additional key All other Hash functions will ignore this parameter |
Key | String | Key, which has to be used |
Text | String | Text, which has to be hashed |