
perlkid
stranger
May 2, 2000, 10:03 PM
Post #5 of 5
(2295 views)
|
Re: $password = crypt($password, "MM"); What MM mean? Please explain for me.
[In reply to]
|
Can't Post
|
|
Try using a substitute or translate function before print the pass word to a data base. $password = crypt($password, "MM"); $password = tr/$/a/; $password = tr/./b/; easier if you do this $password = crypt($password, "MM"); s/.\$\many more\/a/g; then when comparing the data that they later enter to login you must do the same translation in order to have a match. the substitute fuctions alone look like this, just in case the previous ones are wrong. s/pattern/new one/g; tr/pattern/new one/; g means to subtitute the patterns for each time that they occur. good Luck, perlkid
|