Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Password Encryption

by fsn (Friar)
on Aug 20, 2002 at 09:25 UTC ( [id://191420]=note: print w/replies, xml ) Need Help??


in reply to Password Encryption

Why not rot13 encode it:
> cat cleartextpasswords.txt | tr /a-zA-Z/ /n-za-mN-ZA-M/ > encryptedp +asswords.txt > cat encryptedpasswords.txt | tr /a-zA-Z/ /n-za-mN-ZA-M/ > cleartextp +asswords.txt
Or is that a little TOO insecure...?

Replies are listed 'Best First'.
Re: Re: Password Encryption
by ignatz (Vicar) on Aug 20, 2002 at 14:11 UTC
      Hmm... I would argue that the tr command probably predates Perl by a decade. So, who is reinventing the wheel? And is the perl version even faster to write than the tr version?

      And also, look at the memory footprint issue. tr takes 28k on my RH72, where the Perl binary alone takes 708k, + loading the Crypt module...

      Oh, and by the way, :-)

        Touché!

        Our hero clutches his heart and expires.

        ()-()
         \"/
          `                                                     
        

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-03-29 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found