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

IV must be 16 bytes long #18

@nicchong

Description

@nicchong

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions