I am trying to encrypt a string data using AES 128 method.
in java, I could use
SampleEncryptDecrypt oSed = new SampleEncryptDecrypt();
//byte[] key = oSed.generateKey(128);
String str1 = "1111111111111111"; //sample key
byte[] key = str1.getBytes();
System.out.println("Key:" + new String(key));
byte[] encryptedData = oSed.encryptData("MyText", key);
System.out.println("encryptedData: " + new String(encryptedData));
String decryptedData = oSed.decryptData(key, encryptedData);
System.out.println("decryptedData:" + decryptedData);
the output is something like:
Key:1111111111111111
encryptedData: ¼+\žÉP³…讘JLÏ#Þ
decryptedData: MyText
are there any FMs or class methods in ABAP, that we can use to encrypt using AES 128 algorithm.
I checked in scn, but could not find easy way/sample programs.
thanks
Madhu_1980