using System.Security.Cryptography;
public static void Main()
Console.WriteLine("Hello World");
var bytes = new byte[32];
using (var cryptoProvider = RandomNumberGenerator.Create())
cryptoProvider.GetBytes(bytes);
string secureRandomString = Convert.ToBase64String(bytes);
string stringutf = Encoding.UTF8.GetString(bytes);
Console.WriteLine("Secure random string: {0}", secureRandomString);
Console.WriteLine("UTF String: {0}", stringutf);
var token = JwtBuilder.Create()
.WithAlgorithm(new HMACSHA256Algorithm())
.AddClaim("exp", DateTimeOffset.UtcNow.AddYears(10).ToUnixTimeSeconds())
Console.WriteLine("Token: {0}", token);