PKCS5Padding in C#
-
28-03-2021 - |
题
I need to encrypt a string using DESede pkcs5 padding. However C# only provides PKCS7 padding. So how can I achieve this?
解决方案
Im no authority on the matter but a quick google turned this up: http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/13a20d89-7d84-4f7d-8f5c-5ae108a7f5cf/
Seems the 7 & 5 padding algs. are the same.
其他提示
Try using a separate library, such as BouncyCastle.
不隶属于 StackOverflow