JwtTokenBuilder.EncryptWithSecretHex method

Encrypts the JWT using a symmetric key provided as a hexadecimal string.

public JwtTokenBuilder EncryptWithSecretHex(string hex, string keyAlg = "dir", 
    string encAlg = "A256CBC-HS512")
parameter description
hex The symmetric key as a hexadecimal string.
keyAlg The key encryption algorithm (default is “dir”).
encAlg The content encryption algorithm (default is “A256CBC-HS512”).

Return Value

The current JwtTokenBuilder instance.

See Also