Skip to content
This repository has been archived by the owner on Dec 20, 2017. It is now read-only.

IV must be 16 bytes long #18

Open
nicchong opened this issue Oct 12, 2016 · 0 comments
Open

IV must be 16 bytes long #18

nicchong opened this issue Oct 12, 2016 · 0 comments

Comments

@nicchong
Copy link

nicchong commented Oct 12, 2016

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant