encodeHS256

encodeHS256(secret: String;
            error:  String output): String;

The encodeHS256 method of the JadeJsonWebToken class generates a string representation of the JSON Web Token, signed using the HS256 algorithm with the secret value specified in the secret parameter.

For the HS256 signing algorithm, the secret value must be at least 32 characters long. If the specified secret parameter is shorter than 32 characters and an exception handler is:

2020.0.01 and higher