PKCS5Padding in C#

浪尽此生 提交于 2019-12-08 16:25:20

问题


I need to encrypt a string using DESede pkcs5 padding. However C# only provides PKCS7 padding. So how can I achieve this?


回答1:


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.




回答2:


Try using a separate library, such as BouncyCastle.



来源:https://stackoverflow.com/questions/8614997/pkcs5padding-in-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!