0

I have a piece of code for decryption of audio files in Adobe Air/Flex app

var rsaX:ICipher = Crypto.getCipher("rc4", key,Crypto.getPad("pkcs1pad"));
rsaX.decrypt(orgArray);

Please, tell me how to decrypt this algorithm in Java for Android application. Could you please write example of code.

JULIIncognito
  • 1,875
  • 2
  • 15
  • 15
  • That code doesn't make sense. Stream ciphers don't use padding, and PKCS #1 actually concerns RSA. – ntoskrnl Mar 14 '14 at 12:03
  • But this code really encrypted files... My task is decrypt it on java. Is it impossible? – JULIIncognito Mar 14 '14 at 12:13
  • Probably not; you just have to find out what the code does. Most likely it simply ignores the padding parameter. [What have you tried](http://mattgemmell.com/what-have-you-tried/) so far? – ntoskrnl Mar 14 '14 at 12:45
  • Please, see http://stackoverflow.com/questions/22425951/decryption-error-on-android-4-4 – JULIIncognito Mar 15 '14 at 15:45

0 Answers0