在vb.net中加密/解密 [英] encrypt/decrypt in vb.net

查看:66
本文介绍了在vb.net中加密/解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在该论坛上阅读了有关vb.net中加密/解密的文章,如果我想使用必须更改的128或192位密钥进行加密/解密,则该文章使用rijndael 256位密钥进行加密. Thankyou.

i have read an article in this forum about encrypt/decrpyt in vb.net and on that article it using rijndael 256 bit key, if i want to encrypt/ decrypt using 128 or 192 bit key which state i have to change. thankyou.

推荐答案

所有内容均在MSDN帮助页面中进行了描述:
http://msdn.microsoft.com/en-us/library/system. security.cryptography.rijndael.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.security.cryptography.symmetricalgorithm.keysize.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.security.cryptography.symmetricalgorithm.legalkeysizes.aspx [ ^ ].

查看下面引用的属性LegalKeySizes.您需要检查是否要使用有效尺寸.

请参阅对该问题的评论.阅读文档,而不要问此类问题.

—SA
Everything is described in MSDN help pages:
http://msdn.microsoft.com/en-us/library/system.security.cryptography.rijndael.aspx[^],
http://msdn.microsoft.com/en-us/library/system.security.cryptography.symmetricalgorithm.keysize.aspx[^],
http://msdn.microsoft.com/en-us/library/system.security.cryptography.symmetricalgorithm.legalkeysizes.aspx[^].

Look at the property LegalKeySizes referenced below. You need to check is you are going to use valid size.

Please see the comment to the question. Read the documentation instead of asking such questions.

—SA


这篇关于在vb.net中加密/解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆