Encryption/Decryption
770099May 26 2010 — edited May 26 2010I have written a java class to encrypt and decrypt a string . I am using "apache.commons.codec" library to do this. I have the library and my encryption jar both added as external resource. I have cataloged the jar containing the encryption logic so now the methods are all visible to be.
Now when I test this jar from an activity by running it from the studio it works great. I can see the string getting encrypted and then decrypted, but when i start the engine and test it through the portal It throws error.
"Caused by: java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.decodeBase64(Ljava/lang/String;)[B"
Not sure why this is happening. I assume if the code works from an activity it shd also work in runtime unless there is something clashing with this jar in runtime.
any help on this will be appreciated.
-Thanks