# Encrypted passwords not working, clear text does

**URL:** <https://forum.ansible.com/t/encrypted-passwords-not-working-clear-text-does/29869>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [March 12, 2019, 8:08pm UTC](https://forum.ansible.com/t/encrypted-passwords-not-working-clear-text-does/29869 "2019-03-12T20:08:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Harmon](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Post date:** [March 12, 2019, 8:08pm UTC](https://forum.ansible.com/t/encrypted-passwords-not-working-clear-text-does/29869/1 "2019-03-12T20:08:43Z")

</div>

For my credssp (windows) to work, I need ansible\_user and ansible\_password set. I can set these in plain text in a variable, and everything works fine; however, when experimenting with vars\_prompt I attempt the same thing and fails when I use encryption. If I store the password as I do the ad username (clear text), it also works. This may not even be a vars\_prompt issue, but an encryption one. Wondering if this is a bug or if I am doing something wrong?

`Playbook`

`

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [March 12, 2019, 9:09pm UTC](https://forum.ansible.com/t/encrypted-passwords-not-working-clear-text-does/29869/2 "2019-03-12T21:09:47Z")

</div>

The encrypt part of prompt is to create an encrypted/hash value of the prompt, as you can see the output is useless and it will be used literally causing the auth to fail. This is useful for modules that work with the hash value of a password like user but is useless for authentication that requires the plaintext value like WinRM.

Thanks

Jordan

---

<div class="post-metadata">

**Author:** ![John\_Harmon](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@John\_Harmon](https://forum.ansible.com/u/John_Harmon)\
**Post date:** [March 12, 2019, 9:12pm UTC](https://forum.ansible.com/t/encrypted-passwords-not-working-clear-text-does/29869/3 "2019-03-12T21:12:11Z")

</div>

I see. That makes sense. Thank you Jordan.
