crypto_calc
Compute cryptographic hashes like MD5, SHA1, and SHA256, CRC checksums, and modular arithmetic including mod_pow, mod_inverse, and gcd for crypto and data integrity tasks.
Instructions
Computes cryptographic hashes (MD5, SHA1, SHA256), CRC checksums (CRC32, CRC16), and modular arithmetic (mod_pow, mod_inverse, gcd). For several operations or chained steps in one call, use batch_calc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | First number / base / a (for mod_pow, mod_inverse, gcd) | |
| b | No | Second number / exponent / b (for mod_pow, gcd) | |
| data | No | Input string or hex data (for hash, crc32, crc16) | |
| action | Yes | Operation to perform | |
| modulus | No | Modulus (for mod_pow, mod_inverse) | |
| algorithm | No | Hash algorithm (for action='hash') | md5 |
| crcVariant | No | CRC16 variant (for action='crc16') | modbus |
| inputFormat | No | Format of data ('text' or 'hex') | text |