Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Perl Encrypt / Ruby Decrypt
Maran Chandrasekar
2/16/2009 6:19:00 AM
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,
--
Posted via
http://www.ruby-...
.
1 Answer
Brian Candler
2/16/2009 9:35:00 AM
0
Maran Chandrasekar wrote:
> 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.
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Perl Encrypt / Ruby Decrypt
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password