Is there a way to check if a file is encrypted?
1条回答 默认 最新
- dongzhi4470 2010-11-11 17:24关注
Assuming text file.
You can measure character distribution. If characters appear in numbers close to each other (i.e. a small variance) then you most likely have an encrypted file.
Of course this can only be applied to large enough files. You can't tell if a file containing only "ABC" is encrypted or not.
Assuming binary data.
Similar to the above, but it's a little harder to explain.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报