Thank you Chas,

> It looks like https://metacpan.org/pod/Crypt::Password might implement
> Modular Crypt Format.
>
> On Thu, Aug 23, 2018 at 11:38 AM Chas. Owens <chas.ow...@gmail.com> wrote:
>
>  That prefix appears to for the modular crypt format (see below) and lets the 
> shadow file use
>  different hashing functions for different passwords. It is not part of the 
> Bcrypt spec, but you
>  should be able to just add it on. Does the password hash correctly otherwise?
>
>  https://passlib.readthedocs.io/en/stable/modular_crypt_format.html

I confirm it is the format for a Blowfish (2014 version), with cost 10.

I could not create such a password with Perl, I resolved to use python.

I needed to create over 100 accounts and I did not want to do it
manually, click, click, click. That is why I was looking at writting a
script. And all I knew about the encryption used by the software was
what I could see for an account I has created manually.

Best regards,

Olivier

>
>  On Thu, Aug 23, 2018 at 8:30 AM Mike Flannigan <mikef...@att.net> wrote:
>
>  I hope somebody helps you with this.
>
>  I don't think this will help you. It sounds 
>  like you already know all of this:
>  https://crackstation.net/hashing-security.htm
>
>  I don't know what $2b$ is. Still trying to 
>  figure that out.
>
>  It looks like Digest::Bcrypt was last updated 3/2017.
>  I hope it hasn't been abandoned.
>
>  Mike
>
>  On 8/23/2018 3:00 AM, beginners-digest-h...@perl.org wrote:
>
>  Hello,
>
> I am not sure if my question is really of beginer level.
>
> On a system, I have set my password to "t410" and it has ben hashed to:
> $2b$10$OQBll77HJqnOR.zqK2jx8ukE6m68Azc7nrsgRdcT6bVfERRmzFV4.
>
> What could I use with Perl to get the same result?
>
> I tried Digest::Bcrypt but it does not support $2b$ as far as I can
> tell.
>
> Thanks in advance,
>
> Olivier
>

-- 

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to