DES encryption and decryption using 2048 bit java

时间:2018-07-25 05:07:42

标签: java security aes rsa des

Is there any way of encryption and decryption using DEC/ECB 2048 bit and can we generate 2048 bit key using DES. I found that DES supports 64 bit, AES support 256 bits and If you want 2048 bit we can use RSA encryption and decryption. Also, I know that we use triple DES but it supports 168-bit encryption and decryption.

But I want to know that is it possible 2048 bit encryption and decryption Using DES.

Can anyone please suggest me on this or any different approach for this?

1 个答案:

答案 0 :(得分:1)

不。 DES仅允许使用56位密钥,但由于短密钥而不能保证安全性。 三重DES(3DES)也被认为不安全。 (来源:Wikipedia) DES中没有规定其他密钥长度。

如果您想要一个安全的对称密码方案,建议您使用AES-256之类的现代密码,而不要使用旧的,不安全的密码。

可能,您对更大的加密密钥的需求源于对加密方式的误解。 SSL使用RSA密码是因为它是一个很好的public-key cryptosystem。这在除DES之类的对称密码以外的其他情况下很有用。引用维基百科:

  

RSA是一种相对较慢的算法,因此,它不常用于直接加密用户数据。 RSA经常通过加密的共享密钥进行对称密钥加密,从而可以更快的速度执行批量加密-解密操作。

因此,在使用RSA完成密钥交换之后,双方都有一个共享的秘密密钥,该密钥可以用于诸如AES之类的分组密码,以快速传输大量数据。