How to generate crypto passwords for the user module?

devquora
devquora

Posted On: Feb 22, 2018

 

To generate crypto passwords for the user module, mkpasswd utility available in Linux systems is a great option.

Mkpasswd --method=sha-512.

However, if you’re OS X user and this utility is not installed on your system, you can still generate it using python. First check that Passlib passwo4rd hashing library is installed. Once the library is installed, SHA512 password values can then be generated as follows:

 python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt(getpass.getpass())" 

To generate the hashed version of the password, use the hashing filters. Also, use vault to protect sensitive data.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Ansible interview questions

    What is Ansible?

    Ansible is an open source automation platform which can help you with configuration management, task automation and appl..

    Ansible interview questions

    Talk about Ansible architecture.

    Ansible works on ‘agentless architecture’. It works by connecting to your nodes and pushes out Ansible modules to th..

    Ansible interview questions

    List some advantages of using Ansible.

    Unlike other configuration management system, Ansible is the most sought after software applications these days. it off..