Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jul 2004 11:38:28 +0200
From:      Geert Hendrickx <geert.hendrickx@ua.ac.be>
To:        Frank Altpeter <frank@altpeter.de>, freebsd-questions@freebsd.org
Subject:   Re: Converting crypted passwords
Message-ID:  <20040702093828.GA13208@lori.mine.nu>
In-Reply-To: <20040702083214.GA26226@murphy.planlos.de>
References:  <20040702083214.GA26226@murphy.planlos.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040702093828.GA13208>