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. |