hash
All text used in any of the following functions MUST be UTF-8, and is assumed to be little-endian unless otherwise specified.
The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL on this page are to be interpreted as described in the RFC 2119 article, available in the tools section of the IETF website. Additionally, it is advised that before implementing any type of encryption in your system, to review and become familiar with the IETF site and the articles mentioned on this page (RFC 2119, RFC 7523, and RFC 7519).
Encoding, Hashing, and Encrypting Strings
Copy this action to a clipboard?
Definitions
- HS256: formal name for the SHA-256 algorithm.
- HS384: formal name for the SHA-384 algorithm.
- HS512: formal name for the SHA-512 algorithm.
- RS256: formal name for the TSA with SHA-256 algorithm.
- RS384: formal name for the RSA with SHA-384 algorithm.
- RS512: formal name for the RSA with SHA-512 algorithm.
Functions to Encode a String
The EncodeHS256() function generates base64url data, and the most-used online generator (along with others) outputs HEX data. Therefore, any data generated by a 3rd party source must be validated before functioning within Studio.
- string EncodeBase64(stringtext)
- string EncodeBase64Url(string text)
Functions to Decode a String
Currently, Studio only offers the ability to encode base64url strings
Functions to Hash a String
- string EncodeHS256(string text, string key)
- string EncodeHS384(string text, string key)
- string EncodeHS512(string text, string key)
Using JWT Over OAuth
Performs authorization grant request as specified by the RFC 7523 article, available in the tools section of the IETF website. For more information, you can view section 2.1 of the RFC 7523 article and the RFC 7519 article.
Definitions
- HS256: formal name for the SHA-256 algorithm.
- HS384: formal name for the SHA-384 algorithm.
- HS512: formal name for the SHA-512 algorithm.
Functions to Perform an Authorization Using JWT Over Oath
-
string RFC7523GrantWithHS256(string apiUrl, string key, string iss, string sub, string aud, DynamicData jwtHeaderData, DynamicData jwtPayloadData)
-
string RFC7523GrantWithHS256Extended(string apiUrl, string key, string iss, string sub, string aud, DynamicData jwtHeaderData, DynamicData jwtPayloadData, DynamicData queryParams, DynamicData requestHeaders)
-
string RFC7523GrantWithHS384(string apiUrl, string key, string iss, string sub, string aud, DynamicData jwtHeaderData, DynamicData jwtPayloadData)
-
string RFC7523GrantWithHS384Extended(string apiUrl, string key, string iss, string sub, string aud, DynamicData jwtHeaderData, DynamicData jwtPayloadData, DynamicData queryParams, DynamicData requestHeaders)
-
string RFC7523GrantWithHS512(string apiUrl, string key, string iss, string sub, string aud, DynamicData jwtHeaderData, DynamicData jwtPayloadData)
-
string RFC7523GrantWithHS512Extended(string apiUrl, string key, string iss, string sub, string aud, DynamicData jwtHeaderData, DynamicData jwtPayloadData, DynamicData queryParams, DynamicData requestHeaders)