**New course!**Every coder should learn

**Generative AI!**

+ 3

# Encryption standard

Which is the best encryption standard SHA-1, RSA OR AES ?

2 Answers

+ 9

I guess, SHA-256 is best for encrypting passwords.
And anyway, what kind of data you are encrypting? It depends.

+ 1

What?! SHA-1 is not encryption. Its a hashing algorithm. But its broken for ages. Use SHA-256 from now on until its broken.
128 bit AES is enough for most purposes. Use 192 or 256 bit AES to be really really secure.
Use RSA 2048 as a standard today. Use 4096 to be really secure. Make sure you have enough randomness to generate the key.