Hi ,
I am encoding a string using the follwing code
Cipher cipher = Cipher.getInstance("DES/OFB/PKCS5Padding");
cipher.init(Cipher.ENCRYPT_MODE, key);
byte[]inputBytes = input.getBytes("UTF8");
//Encode
byte[] outputBytes = cipher.doFinal(inputBytes);
BASE64Encoder encoder = new BASE64Encoder();
String base64 = encoder.encode(outputBytes);
return base64;
But it gives "Cannot find any provider supporting DES/OFB/PKCS5Padding" Exception . I have tried with other paddings also , it gives the same probelm . Kinldy help in resolving this.
Regards
deb
I am encoding a string using the follwing code
Cipher cipher = Cipher.getInstance("DES/OFB/PKCS5Padding");
cipher.init(Cipher.ENCRYPT_MODE, key);
byte[]inputBytes = input.getBytes("UTF8");
//Encode
byte[] outputBytes = cipher.doFinal(inputBytes);
BASE64Encoder encoder = new BASE64Encoder();
String base64 = encoder.encode(outputBytes);
return base64;
But it gives "Cannot find any provider supporting DES/OFB/PKCS5Padding" Exception . I have tried with other paddings also , it gives the same probelm . Kinldy help in resolving this.
Regards
deb