该文件是否使用AES加密? [英] Is the file Encrypted with AES?

查看:137
本文介绍了该文件是否使用AES加密?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我一直在加密它,那么有没有办法知道一个文件是否已被加密?解密或加密的信息不是问题。但是,如果您尝试解密尚未加密的文件,则会丢失所有数据。如果您加密两次,您将获得双重加密。您可以反转双重加密,但您需要知道它已被加密两次。



有没有办法确定程序?



我在Java中这样做。

解决方案

没有办法告诉任何东西是用AES加密的,它没有留下签名,这是点的一部分。尽管您可以推断出,它可能通过AES或其他128位块密码加密,通过测试数据的长度是以16进制为单位,表明在最后一个块上填充128位块密码


Is there a way to tell if a file has been encrypted already if I know the Algorithm was AES?

I would have been the one to encrypt it, so information to decrypt or encrypt is not a problem. However, if you try to decrypt a file that has not been encrypted you'll lose all the data. If you encrypt it twice, you get a double encryption. You can reverse a double encryption but you need to know that it is encrypted twice.

Is there a way to determine programatically?

I'm doing this in Java.

解决方案

there is no way to tell if anything has been encrypted with AES, it doesnt leave a signature, thats part of the point. although you can infer that its probably been encrypted with AES or some other 128bit block cipher by testing if the length of the data in bytes is a multiple of 16, suggesting a 128bit block cipher with padding on the last block

这篇关于该文件是否使用AES加密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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