What are the differences between JWT RS256, RS384, and RS512 algorithms?

Jayampathy Wijesena picture Jayampathy Wijesena · Jul 24, 2018 · Viewed 7k times · Source

I'm using JWT RS256 algorithm in my current project, but I'm wondering what are the differences between algorithms RS256, RS384, and RS512. Can someone explain to me what are the key differences in these algorithms?

Answer

pedrofb picture pedrofb · Jul 24, 2018

This is the set of algorithms defined for use with JWS in RFC 7518 -JSON Web Algorithms (JWA)

algorithms

The difference between RS256, RS384, and RS512 is the hashing algorithm SHA256, SHA384 and SHA512