1. Rivest-Shamir-Adleman(RSA)算法:
RSA代表Rivest-Shamir-Adleman 。它是用于安全数据传输的密码系统。在RSA算法中,加密密钥是公用的,而解密密钥是专用的。该算法基于数学事实,即分解两个大质数的乘积并不容易。它是由Ron Rivest , Adi Shamir和Leonard Adleman在1977年开发的。
2.数字签名算法(DSA):
DSA代表数字签名算法。它用于数字签名及其验证。它基于模幂和离散对数的数学概念。它是由美国国家标准技术研究院(NIST)于1991年开发的。
它涉及四个操作:
- 密钥生成
- 密钥分配
- 签收
- 签名验证
RSA算法和DSA之间的区别:
RSA | DSA |
---|---|
It is a cryptosystem algorithm. | It is digital signature algorithm. |
It is used for secure data transmission. | It is used for digital signature and its verification. |
It was developed in 1977. | While it was developed in 1991. |
It was developed by Ron Rivest, Adi Shamir and Leonard Adleman. | It was developed by National Institute of Standards and Technology (NIST). |
It uses mathematical concept of factorization of product of two large primes. | It uses modular exponentiation and discrete logarithm. |
It is slower in key generation. | While it is faster in key generation as compared to RSA. |
It in faster than DSA in encryption. | While it is slower in encryption. |
It is slower in decryption. | While it is faster in decryption. |
It is best suited for verification and encryption. | It is best suited for signing in and decryption. |