LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-04-2010, 11:54 PM   #1
ashok.g
Member
 
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215

Rep: Reputation: 32
Perl Decrypt??!!


Hi folks,
Is there anyway to decrypt some plain text which was encrypted using the function crypt()?
 
Old 01-05-2010, 12:15 AM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
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.
 
Old 01-05-2010, 12:39 AM   #3
ashok.g
Member
 
Registered: Dec 2009
Location: Hyderabad,India
Distribution: RHEl AS 4
Posts: 215

Original Poster
Rep: Reputation: 32
ok, Now my requirement is that some function like decrypt.... or can I find the source code of crypt() function?
 
Old 01-05-2010, 05:36 AM   #4
wje_lq
Member
 
Registered: Sep 2007
Location: Mariposa
Distribution: Debian lenny, Slackware 12
Posts: 809

Rep: Reputation: 178Reputation: 178
Quote:
Originally Posted by ashok.g View Post
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.
 
  


Reply

Tags
perl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Decrypt a Perl File, sabarishks Linux - Hardware 2 09-19-2008 08:46 AM
decrypt in perl john83reuben Programming 6 04-01-2008 03:12 AM
Can't decrypt anything with GPG Jorophose Linux - Security 2 12-06-2007 04:57 PM
Decrypt SSL ajaye1971 Linux - Security 1 08-30-2006 04:06 PM
decrypt pdf Daniel Han Linux - General 8 01-27-2004 03:34 AM


All times are GMT -5. The time now is 03:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration