![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
base32check1
Advanced tools
TypeScript implementation of the Base32Check1 algorithm.
There is already a base32check JS library that follows the original primitive polynomial defined by Thaddée Tyl. However, this implementation is a port from base32check-python and base32check-java developed by BITMARCK Service GmbH to support DiGA submissions. Therefore, the checksums computed by this library are different from the ones computed by base32check.
Install:
# npm
npm install base32check1
# yarn
yarn add base32check1
To compute and validate checksums:
import { compute, validate } from 'base32check1';
compute('CONSECRATIO'); // 'X'
validate('CONSECRATIO'); // false
compute('CAFEDEAD'); // 'A'
validate('CAFEDEAD'); // true
To encode and decode Base32 data, base32check1
wraps
base32-decode
and base32-decode libraries.
import { decode, encode } from 'base32check1;
const data = new Uint8Array([0x74, 0x65, 0x73, 0x74]);
// Crockford
decode('EHJQ6X0'); // ArrayBuffer { 4 }
encode(data); // 'EHJQ6X0'
// RFC4648
encode(data, { variant: 'RFC4648' }); // 'ORSXG5A='
decode('ORSXG5A=', { variant: 'RFC4648' }); // ArrayBuffer { 4 }
// RFC4648-HEX
encode(data, { variant: 'RFC4648-HEX' }); // 'EHIN6T0='
encode(data, { variant: 'RFC4648-HEX', padding: false }); // 'EHIN6T0'
decode('EHIN6T0=', { variant: 'RFC4648-HEX' }); // ArrayBuffer { 4 }
See the GitHub release history.
FAQs
TypeScript implementation of the Base32Check1 algorithm
We found that base32check1 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.