Converting crypted passwords

Geert Hendrickx geert.hendrickx at ua.ac.be
Fri Jul 2 15:29:32 PDT 2004


The whole point of md5 digests is that you can't recover the password
from it, you can only match it against the md5-sum of a given password.
So I guess you cannot convert it to other formats without knowing the
password itself.  

GH


On Fri, Jul 02, 2004 at 10:32:14AM +0200, Frank Altpeter wrote:
> 
> Hi there,
> 
> I'm wrestling with a converting problem for a couple of days now,
> but i didn't find a solution yet. Perhaps one of the crypting gurus
> here can give me a hint...
> 
> 
> Given is a system with md5 style passwords like that:
> 
> $1$d61CkkOZ$BE/TofmL5h9gtfxKI6Vcy1
> 
> (This can be generated by "openssl passwd -1 -salt d61CkkOZ test")
> 
> Without knowing the password, i need to convert it to base64 encoded
> binary md5 digest style for using with ProFTP+mod_sql:
> 
> {md5}CY9rzUYh03PK3k6DJie09g==
> 
> (This can be generated by "printf '{md5}' ; printf 'test' | openssl dgst -binary -md5 | openssl enc -base64").
> 
> 
> The problem i have to solve is, how to convert the first encryption
> type into the second encryption type without having the plaintext
> password in between.
> 
> 
> With kind regards,
> 
> 	Frank Altpeter
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"


More information about the freebsd-questions mailing list