[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: crypt() on OpenBSD



In message <19990727113641.A16763@rz.uni-karlsruhe.de>, Hannah Schroeter writes
:
>I don't really understand why adduser uses an external binary for that
>purpose, as perl is linked against the OpenBSD libc whose crypt()
>function performs all non-traditional encryption methods very fine.
Mainly because encrypt does know how to generate the right salts for
the different password hashes.  

To make things more clear:

$2a$12$eIAq8PR8sIUnJ1HaohxX2O9x9Qlm2vK97LJ5dsXdmB.eXF42qjchC
<-     setting to be passed  -><-     encrypted magic     ->
	  to crypt                
       <-    128-bit salt    ->

Niels.