https://github.com/canardconfit/hashlib
Collection of hashlib functions for Ansible
https://github.com/canardconfit/hashlib
ansible hashlib password-hashing security
Last synced: 4 months ago
JSON representation
Collection of hashlib functions for Ansible
- Host: GitHub
- URL: https://github.com/canardconfit/hashlib
- Owner: CanardConfit
- License: mpl-2.0
- Created: 2024-11-04T20:53:10.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-04T21:51:19.000Z (6 months ago)
- Last Synced: 2024-11-04T22:28:47.174Z (6 months ago)
- Topics: ansible, hashlib, password-hashing, security
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Collection - canardconfit.hashlib
This is an Ansible Collection that provides tools from [hashlib library](https://docs.python.org/3/library/hashlib.html).
## Getting Started
To get started, you can install this collection from Ansible Galaxy:
```bash
ansible-galaxy collection install canardconfit.hashlib
```## Usage Example
Here is a basic usage example that demonstrates how to use the PBKDF2-HMAC hashing module:
```yaml
- name: Hash password with PBKDF2-HMAC
hosts: localhost
tasks:
- name: Hash a password using the canardconfit.hashlib collection
canardconfit.hashlib.pbkdf2_hmac_module:
password: "my_secret_password"
iterations: 20000
output_format: "base64"
register: hashed_password- name: Display hashed password
debug:
msg: "Hashed Password: {{ hashed_password.hash }}"
```## Contributing
We welcome contributions to improve this collection! Please submit a pull request or open an issue if you have ideas for new features or find bugs.
## License
This project is licensed under the Mozilla Public License 2.0. See [LICENSE](LICENSE) for more details.