Results 1 to 1 of 1
  1. #1
    mkrayapudi is offline Member
    Join Date
    Dec 2010
    Posts
    1
    Rep Power
    0

    Default Rijndael Encryption

    Hi Friends,

    I want Rijndael Encryption algorithm implemented in java.
    I have googled and find few libraries, but they are not matching to my requirement.

    I want equivalent code in java for the below PHP code and its output:
    ----------------------------------------------------------------------
    <?php
    $key = 'btegAYA$bb0AAA+@n^';
    $text = '4242424242424242';
    $iv = base64_decode('q2Vz0dHxGY/1WihOgF99vSn2QhbqYKDcUvAnFSu5v7E=');
    $crypttext1 = base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $text, MCRYPT_MODE_CBC,$iv));
    echo $crypttext1;
    ?>

    Result:

    idDiA/Bmb4jd9ZsqDYCqlJJt2lbuX4BZwBBkDi9Aris=
    -----------------------------------------------------------------------

    Please help
    Last edited by mkrayapudi; 12-27-2010 at 10:04 PM.

Similar Threads

  1. How to encryption?
    By JavaCy in forum Advanced Java
    Replies: 1
    Last Post: 09-26-2010, 08:49 PM
  2. Trouble with Encryption
    By ldb88 in forum New To Java
    Replies: 0
    Last Post: 04-24-2010, 11:52 PM
  3. Aes Encryption
    By rohitpatidar3 in forum Advanced Java
    Replies: 7
    Last Post: 04-12-2010, 04:16 AM
  4. PGP Encryption&Decryption
    By Deepa in forum New To Java
    Replies: 2
    Last Post: 07-07-2009, 06:22 AM
  5. encryption
    By Joe2003 in forum Advanced Java
    Replies: 2
    Last Post: 02-06-2008, 10:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •