哪种加密模式ECB,CBC,CFB [英] Which encryption mode ECB, CBC, CFB

查看:536
本文介绍了哪种加密模式ECB,CBC,CFB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的PHP脚本和我的C#应用​​程序将传递一个哈希字符串到彼此是32个字符长,什么是最好的模式?我认为ECB,但不确定,因为它说如果使用多于1块不使用。



他们偶尔会传递一个大的文本文件,这将是最好的模式加密这个... CBC?



任何有用的读取欢迎...



感谢



我个人认为,ECB是最简单的模式,真的不推荐(它不像其他模式那么安全)。

d使用CBC。


My php script and my c# application will pass a hash string to each other that is 32 chars long, what is the best mode for this? I thought ECB but am unsure as it says if using more then 1 block dont use. How do I know how big the block is?

They will occasionally pass a large text file, which would be the best mode for encrypting this...CBC?

Any good useful reads welcome...

Thanks

解决方案

ECB is the simplest mode and really not recommended (it's not quite as secure as other modes).

Personally I'd use CBC.

这篇关于哪种加密模式ECB,CBC,CFB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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