On Tuesday, July 1, 2014 5:44:17 AM UTC-5, Suresh P wrote:
>
> Hi, 
>
> user_password="test123"
>
> pass => generate('/bin/sh, '-c', "python -c 'import crypt;print 
> crypt.crypt('$user_password','\$6\$mpouwk')'|tr -d '\n' "),
>
> In above case i'm not able to generate sha-512 password hash.   
>
>

Of course not.  The Python crypt module is a wrapper around crypt(3), which 
is a modified DES algorithm.  If you want SHA-512 then you can get it from 
the hashlib module <https://docs.python.org/2/library/hashlib.html>, among 
other places.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5ff8b36d-b7a4-4596-93f7-f610bd9d5a4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to