Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Ecrypting passwords

by hardburn (Abbot)
on Oct 06, 2003 at 13:55 UTC ( #296937=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    CREATE TABLE secure_fields (
        id     INTEGER UNSIGNED PRIMARY KEY AUTO_INCREMENT NOT NULL, 
        salt   INTEGER UNSIGNED NOT NULL, 
        passwd CHAR(40) NOT NULL 
    );
    
  2. or download this
    plaintex_passwd  = The plaintext password from the user 
    hex()  = Hex encoding function
    ...
    +      = String concat
    
    hex( SHA1( salt + SHA1( salt + plaintext_passwd ) ) )
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://296937]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2021-04-20 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?