I gathered my Sign and Validate functions for JWT tokens, wrapped them in a C# library among with a few helper functions and pushed all in a new repository in Github.
Create and sign JWT token with RS256 using the private key
In this article we will see how we can create and sign a JWT token with the RS256 algorithm. This function is complementary to the validate function I posted some time ago.
Verify JWT token signed with RS256 using the public key
In this article we will see how we can verify a JWT token that has been signed with the RS256 algorithm. While there are more than a few libraries for .NET that provide functionality to decode and verify JWT tokens, none of them support the specific algorithm.