是不是曾经建议使用欧洲央行加密模式? [英] Is It Ever Recommended To Use The ECB Cipher Mode?

查看:174
本文介绍了是不是曾经建议使用欧洲央行加密模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来看对密码模式,然后我听说欧洲央行的其他东西,这个维基百科文章,这是一个很大的禁忌,可以泄露你的加密数据的信息。但是,仍然有很多的例子在那里的'网,利用欧洲央行:

是以往任何时候都可以接受的或有利使用ECB?

如果数据非常小(1块),您使用的是<打击>两个盐<打击>和IV ,是它好吗?如果是这样,这里是阈值,当你停止使用它?

解决方案
  

如果数据非常小(1块),而你同时使用盐和IV,是就OK了?

  

如果有,在哪里为阈值,当你停止使用它?

两个街区。没有任何实际的理由使用欧洲央行,它存在的唯一理由是因为它是如何使用分组密码一个简单的例子。

Judging from this Wikipedia article on cipher modes and other things I've heard about ECB, it's a big no-no and can leak information about your encrypted data. However, there are still plenty of examples out there on the 'net that utilize ECB:

Is it ever acceptable or advantageous to use ECB?

If the data is very small (one block) and you're using both a salt and an IV, is it OK? If so, where is the threshold when you stop using it?

解决方案

If the data is very small (one block) and you're using both a salt and an IV, is it OK?

Yes

If so, where is the threshold when you stop using it?

Two blocks. There isn't any practical reason to use ECB, the only reason it exists is because it's a simple example of how to use a block cipher.

这篇关于是不是曾经建议使用欧洲央行加密模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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