# Supplying algorithm specific options with the htpasswd module

**URL:** <https://forum.ansible.com/t/supplying-algorithm-specific-options-with-the-htpasswd-module/32152>\
**Category:** Ansible Project\
**Created:** [February 5, 2020, 11:05pm UTC](https://forum.ansible.com/t/supplying-algorithm-specific-options-with-the-htpasswd-module/32152 "2020-02-05T23:05:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [February 5, 2020, 11:05pm UTC](https://forum.ansible.com/t/supplying-algorithm-specific-options-with-the-htpasswd-module/32152/1 "2020-02-05T23:05:37Z")

</div>

Hi

I'm using the htpasswd module to create a password file for use with  
Dovecot, which is to be used for SMTP authentication.  
This works OK but the default encryption scheme is 'apr\_md5\_crypt'  
which isn't optimal.  
But, as the doc already say  
([https://docs.ansible.com/ansible/latest/modules/htpasswd\_module.html#parameter-crypt\_scheme](https://docs.ansible.com/ansible/latest/modules/htpasswd_module.html#parameter-crypt_scheme)  
\< btw - new direct link to parameter 🙂 ) I can also pick other  
schemes that are supported by passlib. I verified those work as well  
for my use case.

Most schemes that passlib supports seem to accept a number of optional  
paramters, such as the number of rounds, custom salt, etc:  
[https://passlib.readthedocs.io/en/stable/lib/passlib.hash.argon2.html#interface](https://passlib.readthedocs.io/en/stable/lib/passlib.hash.argon2.html#interface)

Is there any way to configure those through the htpasswd module?

thx

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [February 5, 2020, 11:41pm UTC](https://forum.ansible.com/t/supplying-algorithm-specific-options-with-the-htpasswd-module/32152/2 "2020-02-05T23:41:10Z")

</div>

managed to make this work:  
[https://github.com/ansible/ansible/pull/67147](https://github.com/ansible/ansible/pull/67147)
