# Encrypting password without using vault

**URL:** <https://forum.ansible.com/t/encrypting-password-without-using-vault/22193>\
**Category:** Ansible Project\
**Created:** [August 2, 2016, 6:31pm UTC](https://forum.ansible.com/t/encrypting-password-without-using-vault/22193 "2016-08-02T18:31:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dana\_Christo](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@Dana\_Christo](https://forum.ansible.com/u/Dana_Christo)\
**Post date:** [August 2, 2016, 6:31pm UTC](https://forum.ansible.com/t/encrypting-password-without-using-vault/22193/1 "2016-08-02T18:31:18Z")

</div>

Hi,

Is there a way to encrypt a password in the hosts file without using a vault?

Thanks!

---

<div class="post-metadata">

**Author:** ![Paul\_Totterman](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@Paul\_Totterman](https://forum.ansible.com/u/Paul_Totterman)\
**Post date:** [August 2, 2016, 6:59pm UTC](https://forum.ansible.com/t/encrypting-password-without-using-vault/22193/2 "2016-08-02T18:59:36Z")

</div>

> Is there a way to encrypt a password in the hosts file without using a vault?

What are the problems you are having with vault so that we don’t suggest something with the same problems?

Cheers,  
Paul

---

<div class="post-metadata">

**Author:** ![Mark\_Janssen](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark\_Janssen](https://forum.ansible.com/u/Mark_Janssen)\
**Post date:** [August 5, 2016, 8:08am UTC](https://forum.ansible.com/t/encrypting-password-without-using-vault/22193/3 "2016-08-05T08:08:31Z")

</div>

Yup… you can use a password lookup module… for example this one:

[https://github.com/morphje/ansible\_pass\_lookup](https://github.com/morphje/ansible_pass_lookup)

Which will store the password gpg-encrypted outside of the playbook.
