Yes, you need to use a salt and can use anything you'd like. For instance,
if you're creating an encrypted password for a user's login, you might do
something like this:
my $username = 'foo';
my $password = 'bar';
my $crypted_password = crypt($password, $username);
crypt() uses the first two
> "David" == David vd Geer Inhuur tbv IPlib <[EMAIL PROTECTED]> writes:
David> Trying to use crypt() to encrypt a given password. I know
David> how to compare a given password with an encrypted one, but to
David> encrypt one myself and save it, doesn't work for me for some
Da
Hi,
Right now I am a little lost.
Trying to use crypt() to encrypt a given password.
I know how to compare a given password with an encrypted one, but to encrypt one
myself and save it, doesn't work for me for some reason.
You would say, Ah of course forgotten to give your encryption key. That'
cc:
[EMAIL PROTECTED] Subject:
how to use crypt() function to
encrypt
and decrypt shell use
I need to create simple perl programs that modify
user's password on linux machine (using # usermod)
but I dunno how to use its pass encryption
thanx
or maybe there's another better approach on this
regards
gaga
__
Do You Yahoo!?
Get email at your