是不是曾经建议使用欧洲央行加密模式?欧洲、央行、模式、建议

2023-09-05 01:08:29 作者:似水流年

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

一顶谷歌的结果在.NET 其中一个回答这个问题的

是以往任何时候都可以接受的或有利使用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:

One of the top Google results for a Triple DES sample in .NET One of the answers to this question

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.