Click here to Skip to main content
15,890,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi.

I have to encrypt a string with AES - PKCS7 Padding in VB.NET.

I don't know anything about en/decryption and I have asked google before...but without a result.. :(

I have received this description to do that:
The PKCS #7 padding string consists of a sequence of bytes, each of which is equal to the total number of padding bytes added.
The following example shows how these modes work. Given a blocklength of 8, a data length of 9, the number of padding octets equal to 7, and the data equal to FF FF FF FF FF FF FF FF FF:
Data: FF FF FF FF FF FF FF FF FF
PKCS7 padding: FF FF FF FF FF FF FF FF FF 07 07 07 07 07 07 07


So can you help me?


Thanks...

Z
Posted
Updated 8-Dec-10 22:06pm
v2

1 solution

Hmm..
This topic is still active..
I need help with this problem..
Can somebody help me, please?

Best Regards,
Z
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900