Skip to content
This repository has been archived by the owner on Jul 8, 2022. It is now read-only.

AES encryptAesCbc Error #44

Answered by soywiz
windy-itus asked this question in Q&A
Sep 23, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Yeah it seems to be expected. But the error reported was a bit misleading. I have handled it here:

If the number of bytes you are providing in the data are not multiple of 16, you have to specify a padding algorithm.

For example:

AES.encryptEes128Cbc(data, key, padding = Padding.PKCS7Padding)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@windy-itus
Comment options

Comment options

You must be logged in to vote
1 reply
@windy-itus
Comment options

Answer selected by soywiz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants