Htpasswd in template

I’d like to store login/password in vault, and have them hashed in a format Traefik accepts (htpasswd format, either md5, sha1 or bcrypt).
It looks like the sprig version available is too old to have the bcrypt or htpasswd function. How could I achieve it ?