LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Perl Decrypt??!! (https://www.linuxquestions.org/questions/programming-9/perl-decrypt-779889/)

ashok.g 01-04-2010 11:54 PM

Perl Decrypt??!!
 
Hi folks,
Is there anyway to decrypt some plain text which was encrypted using the function crypt()?

nadroj 01-05-2010 12:15 AM

Quote:

Originally Posted by http://perldoc.perl.org/functions/crypt.html
There is no decrypt function. This function isn't all that useful for cryptography (for that, look for Crypt modules on your nearby CPAN mirror) and the name "crypt" is a bit of a misnomer. Instead it is primarily used to check if two pieces of text are the same without having to transmit or store the text itself. An example is checking if a correct password is given. The digest of the password is stored, not the password itself. The user types in a password that is crypt()'d with the same salt as the stored digest. If the two digests match the password is correct.

Hopefully that quote is self explanatory.

ashok.g 01-05-2010 12:39 AM

ok, Now my requirement is that some function like decrypt.... or can I find the source code of crypt() function?

wje_lq 01-05-2010 05:36 AM

Quote:

Originally Posted by ashok.g (Post 3814440)
ok, Now my requirement is that some function like decrypt.... or can I find the source code of crypt() function?

I abjectly apologize for what I'm about to inflict on you, but here ya go.


All times are GMT -5. The time now is 08:17 PM.