AESCrypt-Android icon indicating copy to clipboard operation
AESCrypt-Android copied to clipboard

IV must be 16 bytes long

Open nicchong opened this issue 9 years ago • 0 comments

Hello,

Im getting (IV must be 16bytes long) when using the advance mode.

My encryptedText = "HE9257Ykdrnb7zZTbNYLcLNzsg24t2aEftUZ7Tr0BU0=" My IV = "618wNQX6K3k2343c" //My IV is 16byte long

I base 64 decode both using Base64.decode(encryptedText, Base64.NO_WRAP) and Base64.decode(IV, Base64.NO_WRAP) then pass in (SecretKeySpec, byte[] IV, byte[] encryptedText ) as parameter for advance mode, but gave me an error (IV must be 16 bytes long).

nicchong avatar Oct 12 '16 18:10 nicchong