in reply to Encrypt in Perl and decrypt in JAVA

Sure you can do it. It isn't a wild idea. Just make sure you use a compatible algorithm on each side. For the Perl/encryption side, you can find support for a variety of encryption algorithms/protocols at CPAN. For Java/decryption side, check the standard libraries or third party vendors.

  • Comment on Re: Encrypt in Perl and decrypt in JAVA

Replies are listed 'Best First'.
Re^2: Encrypt in Perl and decrypt in JAVA
by ashok.g (Beadle) on Jan 05, 2011 at 09:53 UTC
    We tried with Crypt::CBC. In that I used the  -cipher => 'blowfish' and got some hexa decimal code and passed that value in URL.

    But, that value is not going to be decrypted at the java application. They are just using some blowfish decryption algorithm.
      They are just using some blowfish decryption algorithm.

      Obviously you have to use the same algorithms and keys both in perl and java. That includes the same cypher block mode, the same key and data padding if the are of "wrong" size, and same content-encoding, if any.

      If there's an existing java system which decrypts stuff, you first have to learn exactly what the java side does.

      They are just using some blowfish decryption algorithm.

      Here is an idea, you can use some blowfish encryption algorithm?