gnablib
A library for building web/node/deno applications.
Installation
This module is available through NPM. There are no install scripts, decrease your risk by explicitly preventing (--ignore-scripts
)
PNPM
pnpm install gnablib --ignore-scripts
NPM
npm install gnablib --ignore-scripts
Details
rfc5234
Augmented Backus-Naur Form /- Operators
- Definition of core rules
Algorithms
- Weighted Random Sampling
- Next power of 2
- Thomson NFA (1968) solver
Checksum
- adler32
- Block check character
- cksum
- CRC32
- fletcher 16, 32, 64
- Longitudinal redundancy check
- Luhn
- MD5Sum
- SHA1Sum
Error Correction Codes
Encoding
- ASCII85
- Base32
- Base64
- Crockford32
- Densely Packed Decimal
- Hex
- IEEE754
- Proquint
- QuotedPrintable
- ROT13
- ROT13.5
- ROT47
- URI
- UTF8
- uuencode, uudecode
- UUID
- YEnc
Endian
- Big
- Little
Hash & XOF
Hash (Crypto)
Name | Digest sizes | Optional parameters |
---|---|---|
Blake | 256, 512 | salt |
Blake2b | 8-512, 256, 384, 512 | key, salt, personalization |
Blake2s | 8-256, 224, 256 | key, salt, personalization |
Keccak | 8-512, 224, 256, 384, 512 | capacity |
MD4† | 128† | - |
MD5† | 128† | - |
ParallelHash (128,256) | 8-512 | block size, customization |
RipeMD† | 128†, 160†, 256, 320 | - |
SHA-1† | 160† | - |
SHA-2 | 224, 256, 384, 512, 512/224, 512/256 | - |
SHA-3 | 224, 256, 384, 512 | - |
TupleHash (128, 256) | 8-512 | customization |
Whirlpool | 512 | - |
† No longer considered cryptographically safe
XOF
Name | Capacities | Optional parameters |
---|---|---|
cShake | 128, 256 | digest size, function name, customization |
KmacXof | 128, 256 | digest size, key, customization |
ParallelHashXof | 128, 256 | block size, digest size, customization |
Shake | 128, 256 | digest size |
TupleHashXof | 128, 256 | digest size, customization |
Hash (Non-Crypto)
Name | Digest sizes | Optional parameters |
---|---|---|
Lookup2 | 32 | seed (u32) |
Lookup3 | 32+32/64 | Two u32 seeds |
Murmur3 | 32 | seed (u32) |
Spooky v2 | 128 | Two u32 seeds |
Log
- Structured logging
KDF
MAC
- HMAC (Blake, Blake2, cShake, Keccak, MD4, MD5, RipeMD, Sha1, Sha2, Sha3, Shake, Whirlpool)
- KMAC (128, 256)
Net
Primitive
- DateTime
- Duration
- Fixed TypedArray
- Int64
- Lazy
- Readonly TypedArray
- Scaling TypedArray
- StringBuilder
- Uint64
- WindowStr
Extensions:
- Bit
- Error
- Integer
- Object
- String
Misc
- RegExp escape string