Snack-X / rijndael-js

Pure JS implementation of Rijndael algorithm
MIT License
18 stars 10 forks source link

how to use PaddingMode #5

Closed bag7dad closed 4 years ago

bag7dad commented 4 years ago
                       crypto = new RijndaelManaged();
            crypto.Key = key;
            crypto.IV = new byte[16];
            crypto.Padding = PaddingMode.PKCS7;

about key and IV its ok what about Padding ? or its not important?

Snack-X commented 4 years ago

Padding is not part of this library.

PKCS is a well-defined standard, and PKCS padding method can be applied separately outside this library.