Logo

dev-resources.site

for different kinds of informations.

AES/CBC/PKCS5Padding Encryption

Published at
5/4/2021
Categories
encryption
aes
cbc
pkcs5
Author
rye0101
Categories
4 categories in total
encryption
open
aes
open
cbc
open
pkcs5
open
Author
7 person written this
rye0101
open
AES/CBC/PKCS5Padding Encryption

I'm trying to create an encryption functionality using AES/CBC/PKCS5Padding, but unfortunately after hours of research it seems that there's no PKCS5 in C# (PKCS7 instead). Most of code snippets are built in Java. Also found something on .Net documentation that PKCS5 is same with PKCS7 but I haven't tried it yet.

Can you direct me to a resource where I can use as reference to create Encryption with AES/CBC/PKCS5Padding in Java and C#? Also if there are sample code using Bouncy Castle provider. Thanks in advance!

Here's the sample Code I've created
image

Featured ones: