token-hash

Generate base64url encoding from the left-most half of the hash of a token.

OTHER License

Downloads
15
Stars
3
Committers
2

Token Hash

Generate base64url encoding from the left-most half of the hash of a token. -- OpenID Connect

Installation

npm install token-hash --save

Usage

import { tokenHash } from "token-hash";

tokenHash("RS256", "aabbcc"); //=> "pbQy7gMHvn-iOqAEYfVO7g"

License

Apache 2.0