Created
February 3, 2015 06:40
-
-
Save kyl191/442455bfd47fa8603ba2 to your computer and use it in GitHub Desktop.
password hasher for ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Securely generate a hash for ansible | |
# don't paste the password into code at any point in time | |
from __future__ import print_function | |
from passlib.hash import sha256_crypt | |
from getpass import getpass | |
pw = getpass() | |
print(sha256_crypt.encrypt(pw)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment