如何检查数据是否已经加密

发布于 2024-09-11 02:12:17 字数 72 浏览 0 评论 0原文

我在当前项目中使用 RijndaelManaged 来加密数据,有什么方法可以检查数据是否已经加密,这样我就不会对其进行两次加密?

I am using RijndaelManaged in my current project to encrypt data , is there any way tht I can check whether the data is already encrypted or not so i don't end up encrypting it twice?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

离线来电— 2024-09-18 02:12:17

不,没有可靠的方法可以知道您正在检查的数据是否已经加密。大多数明文都有可以检测到的偏差或模式,但这些技术不能保证普遍有效。您需要向密文(或明文)添加额外的结构,例如每个密文消息或块都以 128 位模式开头。

No, there is no reliable way to know whether the data you are examining has already been encrypted. Most plaintext has biases or patterns that can be detected, but those techniques are not guaranteed to work in general. You need to add additional structure to the ciphertext (or the plaintext), for example each ciphertext message or block begins with a 128-bit pattern.

吲‖鸣 2024-09-18 02:12:17

如果数据可以被压缩,那么通常意味着尚未应用加密(或其他压缩)。

If data can be compressed, then it normally means encryption (or other compression) has not been applied.

毁我热情 2024-09-18 02:12:17

我认为这个问题是与您所要求的非常匹配。如果该问题的答案还不够,请发表评论。

I think this question is a close match to what you are asking. Please leave a comment if the answers to that question were not enough.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文