Perl Encrypt / Ruby Decrypt

Discussion in 'Ruby' started by Maran Chandrasekar, Feb 16, 2009.

  1. 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-forum.com/.
    Maran Chandrasekar, Feb 16, 2009
    #1
    1. Advertising

  2. 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-forum.com/.
    Brian Candler, Feb 16, 2009
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    482
    Jonathan Allen
    Sep 25, 2004
  2. Mark

    Encrypt/decrypt info from form

    Mark, Feb 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,491
    William LaMartin
    Feb 6, 2004
  3. Replies:
    1
    Views:
    419
    Daniel Martin
    Jun 16, 2007
  4. http://ejobseek.com

    Encrypt in Perl, De-encrypt in Javascript

    http://ejobseek.com, Sep 1, 2003, in forum: Perl Misc
    Replies:
    3
    Views:
    268
    James Willmore
    Sep 1, 2003
  5. uncle
    Replies:
    2
    Views:
    132
    Michele Dondi
    Jun 16, 2007
Loading...

Share This Page