-
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