简体   繁体   English

如何发现特定数据是否已加密?

[英]How can I discover whether a particular piece of data is encrypted?

How can I discover whether a particular piece of data (say, a string, or file data) is encrypted? 如何发现特定数据(例如字符串或文件数据)是否已加密? I wish to discover this programmatically, rather than via manually inspection. 我希望通过编程而不是通过手动检查来发现这一点。

There's no formal procedures to find out is data encrypted or not. 没有正式的程序可以确定数据是否已加密。 Even manually it is not always possible to understand what kind of data we are dealing with. 即使是手动操作,也并非总是能够了解我们正在处理哪种数据。

Trying to decrypt a piece of data with all available decryption algorithms will take significant time and does not guarantee 100% result which can be trusted. 尝试使用所有可用的解密算法对数据片段进行解密将花费大量时间,并且不能保证100%的结果可信赖。

For your applications send a flag to the recipent to make a signal that data is encrypted/is not encrypted. 对于您的应用程序,向标记发送一个标志,以表明数据已加密/未加密。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM