hash

Hash a string according to an algorithm.

Usage

z hash <algorithm>

Arguments

algorithm Mandatory. Which algorithm to use for hashing. md5 and sha1 are not cryptographically secure and should not be used for secure applications.
Type: enum(md5, sha1, sha224, sha256).

Examples

# hash a string with md5
z hash md5

# hash a string with sha1
z hash sha1

# hash a string with sha224
z hash sha224

# hash a string with sha256
z hash sha256