Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

cryptography

Subcommands

SubcommandDescriptionSyntax
md5Calculates the MD5 hash of the nested expressionmd5(<expr>)
sha1Calculates the SHA1 hash of the nested expressionsha1(<expr>)
sha224Calculates the SHA224 hash of the nested expressionsha224(<expr>)
sha256Calculates the SHA256 hash of the nested expressionsha256(<expr>)
sha384Calculates the SHA384 hash of the nested expressionsha384(<expr>)
sha512Calculates the SHA512 hash of the nested expressionsha512(<expr>)
sha3_224Calculates the SHA3-224 hash of the nested expressionsha3_224(<expr>)
sha3_256Calculates the SHA3-256 hash of the nested expressionsha3_256(<expr>)
sha3_384Calculates the SHA3-384 hash of the nested expressionsha3_384(<expr>)
sha3_512Calculates the SHA3-512 hash of the nested expressionsha3_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)