Perl Encrypt / Ruby Decrypt

M

Maran Chandrasekar

Dear folks,
I have encrypted string, which was encrypted by following perl code

use Crypt;
print "enter the normal pin\n";
$entered_pin = <STDIN>;
chomp ( $entered_pin );
my $EPin = Crypt::Encrypt ( $entered_pin );
print "Encrypted pin is : $EPin\n\n\n";


I want to decrypt the encrypted string through RUBY code, is this
possible?
please let me know.

thanks,
 
B

Brian Candler

Maran said:
Dear folks,
I have encrypted string, which was encrypted by following perl code

use Crypt;
print "enter the normal pin\n";
$entered_pin = <STDIN>;
chomp ( $entered_pin );
my $EPin = Crypt::Encrypt ( $entered_pin );
print "Encrypted pin is : $EPin\n\n\n";


I want to decrypt the encrypted string through RUBY code, is this
possible?
please let me know.

The answer is "yes" if that perl function does a two-way encryption, or
"no" if that perl function does a one-way encryption (a.k.a. hash
function)

So first thing you need to do is to look at the documentation for that
Perl function, and find out what type of encryption it is using, and
what algorithm.

search.cpan.org doesn't turn up any module called "Crypt::Encrypt", so
go look where this module came from.

If you post an example of what the PIN 1234 looks like when encrypted,
we may be able to tell you what it's doing just from that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top