Problem with Cipher class in javax.crypto
I am facing a problem when I try to encrypt and decrypt the simple string text with the Cipher class in javax.crypto. This problem comes with some combination of plainText and Key. An example combination is given below
The sample code is given below
Cipher cipher = Cipher.getInstance("DES/ECB/NoPadding");
String key= "hellovij";
String input = "Botlaaaa";
when i perform encryption and decryption i am getting the following output
Before Encryption input is :-->Botlaaaa
After Encryption cipher is :--> ?▐V¬◄♠┴
After Decryption input is :-->▄YA♫Γ╛♣Y (here it should be Botlaaa)
Please help me in solving this issue..
Thanks in advan:mad:ce.