cryptography
Subcommands
| Subcommand | Description | Syntax |
|---|---|---|
md5 | Calculates the MD5 hash of the nested expression | md5(<expr>) |
sha1 | Calculates the SHA1 hash of the nested expression | sha1(<expr>) |
sha224 | Calculates the SHA224 hash of the nested expression | sha224(<expr>) |
sha256 | Calculates the SHA256 hash of the nested expression | sha256(<expr>) |
sha384 | Calculates the SHA384 hash of the nested expression | sha384(<expr>) |
sha512 | Calculates the SHA512 hash of the nested expression | sha512(<expr>) |
sha3_224 | Calculates the SHA3-224 hash of the nested expression | sha3_224(<expr>) |
sha3_256 | Calculates the SHA3-256 hash of the nested expression | sha3_256(<expr>) |
sha3_384 | Calculates the SHA3-384 hash of the nested expression | sha3_384(<expr>) |
sha3_512 | Calculates the SHA3-512 hash of the nested expression | sha3_512(<expr>) |
Examples
md5
For a field data containing hello, this example sets hash to the MD5 hash:
| eval hash=md5(data)
sha1
For a field data containing hello, this example sets hash to the SHA1 hash:
| eval hash=sha1(data)
sha224
For a field data containing hello, this example sets hash to the SHA224 hash:
| eval hash=sha224(data)
sha256
For a field data containing hello, this example sets hash to the SHA256 hash:
| eval hash=sha256(data)
sha384
For a field data containing hello, this example sets hash to the SHA384 hash:
| eval hash=sha384(data)
sha512
For a field data containing hello, this example sets hash to the SHA512 hash:
| eval hash=sha512(data)
sha3_224
For a field data containing hello, this example sets hash to the SHA3-224 hash:
| eval hash=sha3_224(data)
sha3_256
For a field data containing hello, this example sets hash to the SHA3-256 hash:
| eval hash=sha3_256(data)
sha3_384
For a field data containing hello, this example sets hash to the SHA3-384 hash:
| eval hash=sha3_384(data)
sha3_512
For a field data containing hello, this example sets hash to the SHA3-512 hash:
| eval hash=sha3_512(data)