pbkdf2_hmac – Generate a salted PBKDF2_HMAC password hash
Note
This filter plugin is part of the middleware_automation.amq collection.
To install it, use: ansible-galaxy collection install middleware_automation.amq
.
To use it in a playbook, specify: middleware_automation.amq.pbkdf2_hmac
.
New in middleware_automation.amq 1.1.0
Synopsis
Generate a salted one-way PBKDF2 HMAC_password hash
Input
This describes the input of the filter, the value before | middleware_automation.amq.pbkdf2_hmac
.
Parameter |
Comments |
---|---|
Keyword parameters
This describes keyword parameters of the filter. These are the values key1=value1
, key2=value2
and so on in the following
example: input | middleware_automation.amq.pbkdf2_hmac(key1=value1, key2=value2, ...)
Parameter |
Comments |
---|---|
salt for password hashing, in uppercase hexstring format |
|
number of iterations, default 1024 |
Examples
# generate pbkdf2_hmac hash in hex format for 'password' with given salt
- name: Generate salted PBKDF2_HMAC password hash
ansible.builtin.debug:
msg: >-
{{ 'password' | pbkdf2_hmac(hexsalt='7BD6712B68F9BD60B51D77EBD851A21F63E61F2B52301E7CA38DD1602CA662EB' }}
Return Value
Key |
Description |
---|---|
the uppercase hexstring representation of the hashed password Returned: success |