What is the difference between DSA and RSA?

后端 未结 5 1707
无人及你
无人及你 2021-01-29 18:24

It appears they are both encryption algorithms that require public and private keys. Why would I pick one versus the other to provide encryption in my client server application

5条回答
  •  萌比男神i
    2021-01-29 19:01

    With reference to man ssh-keygen, the length of a DSA key is restricted to exactly 1024 bit to remain compliant with NIST's FIPS 186-2. Nonetheless, longer DSA keys are theoretically possible; FIPS 186-3 explicitly allows them. Furthermore, security is no longer guaranteed with 1024 bit long RSA or DSA keys.

    In conclusion, a 2048 bit RSA key is currently the best choice.

    MORE PRECAUTIONS TO TAKE

    Establishing a secure SSH connection entails more than selecting safe encryption key pair technology. In view of Edward Snowden's NSA revelations, one has to be even more vigilant than what previously was deemed sufficient.

    To name just one example, using a safe key exchange algorithm is equally important. Here is a nice overview of current best SSH hardening practices.

提交回复
热议问题