Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@digitalcredentials/base64url-universal
Advanced tools
Encode/decode "Base64url Encoding" format of JSON Web Signature (JWS) RFC7517.
base64url
Library (@digitalcredentials/base64url-universal)A Javascript isomorphic library for
base64url
text encoding, for Node.js, React Native and browsers
Encode/Decode input according to the "Base64url Encoding" format as specified in JSON Web Signature (JWS) RFC7517. A URL safe character set is used and trailing '=', line breaks, whitespace, and other characters are omitted.
TBD
To install via NPM:
npm install @digitalcredentials/base64url-universal
To install locally (for development):
git clone https://github.com/digitalcredentials/base64url-universal.git
cd base64url-universal
npm install
string
⏏Uint8Array
⏏string
⏏Encodes input according to the "Base64url Encoding" format as specified in JSON Web Signature (JWS) RFC7517. A URL safe character set is used and trailing '=', line breaks, whitespace, and other characters are omitted.
Kind: Exported function
Returns: string
- the encoded value.
Param | Type | Description |
---|---|---|
input | Uint8Array | string | the data to encode. |
Uint8Array
⏏Decodes input according to the "Base64url Encoding" format as specified in JSON Web Signature (JWS) RFC7517. A URL safe character set is used and trailing '=', line breaks, whitespace, and other characters are omitted.
Kind: Exported function
Returns: Uint8Array
- the decoded value.
Param | Type | Description |
---|---|---|
input | string | the data to decode. |
PRs accepted.
If editing the Readme, please conform to the standard-readme specification.
MIT License © 2023 Digital Credentials Consortium.
2.0.4-2.0.6 - 2023-12-06
FAQs
Encode/decode "Base64url Encoding" format of JSON Web Signature (JWS) RFC7517.
We found that @digitalcredentials/base64url-universal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.