加密算法设计 [英] encryption algorithm design

查看:149
本文介绍了加密算法设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设计密钥长度为8位的加密算法.有人可以给我一些参考吗?

I want to design encryption algorithm with 8 bit key length .can anyone give me some refrence?

推荐答案

是的.不要.

八位密钥太小了,太小了,无法提供任何有效的保护-它的可能性比银行卡的PIN码少!

您会以为算法会以任何方式保护您的数据,这将浪费您的时间,并给自己一种虚假的安全感.您认为对加密数据上的所有256种可能的密钥组合"进行尝试需要多长时间?分钟?也许几秒钟?


[edit]由于八位字节的盛行,每位仅使用两个值,我将组合总数更改为256.这使它成为更差的算法-OriginalGriff [/edit]
Yes. Don''t.

An eight bit key is far, far too small to provide any significant protection - it''s got fewer possibilities than the PIN code for your bank card!

You will be wasting your time, and giving yourself a false sense of security, by thinking that your algorithm in any way protects your data. How long do you think it would take to try all 256 possible "combinations" of keys on your encrypted data? Minutes? Seconds perhaps?


[edit]Due to the prevalence of eight bit bytes, using *only* two values per bit, I changed the combinations total to 256. Which makes it an even worse algorithm - OriginalGriff[/edit]


如果您使用的是8位密钥,那么安全性就不存在了,有人尝试所有可能的256种组合不会花很长时间.您不妨只对密钥和所有数据进行异或操作,然后可以再次对其进行异或操作以取回信息.这很简单,而且由于您无需使用安全的密钥长度就不会损失太多.
If you''re using an 8-bit key then security is non-existent, it won''t take long for someone to try all possible 256 combinations. You might as well just xor the key with all your data, then you can xor it again to get the information back. It''s simple, and since you aren''t using a secure key length to begin with you aren''t losing much.


这篇关于加密算法设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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