A collection of hashing and encoding functions
Decode a base64-encoded string
New in version 2014.7.0.
CLI Example:
salt '*' hashutil.base64_decodestring 'Z2V0IHNhbHRlZA==
'
Encode a string as base64
New in version 2014.7.0.
CLI Example:
salt '*' hashutil.base64_encodestring 'get salted'
Verify a challenging hmac signature against a string / shared-secret
New in version 2014.7.0.
Returns a boolean if the verification succeeded or failed.
CLI Example:
salt '*' hashutil.hmac_signature 'get salted' 'shared secret' 'NS2BvKxFRk+rndAlFbCYIFNVkPtI/3KiIYQw4okNKU8='
Generate an md5 hash of a given string
New in version 2014.7.0.
CLI Example:
salt '*' hashutil.md5_digest 'get salted'
Generate an sha256 hash of a given string
New in version 2014.7.0.
CLI Example:
salt '*' hashutil.sha256_digest 'get salted'
Generate an sha512 hash of a given string
New in version 2014.7.0.
CLI Example:
salt '*' hashutil.sha512_digest 'get salted'
Docs for previous releases are available on salt.rtfd.org.
Latest Salt release: 2014.7.1
22.16.75. salt.modules.haproxyconn
Upcoming SaltStack events, webinars and local meet ups and user groups.