Skip to content

This zbase32 library encodes ArrayBuffers to zbase32 encoded strings and back.

Notifications You must be signed in to change notification settings

projectdiscovery/zbase32

 
 

Repository files navigation

zbase32

This zbase32 library encodes ArrayBuffers to zbase32 encoded strings and back.

If you want to encode strings you'll have to convert them to ArrayBuffers, you can use the TextEncoder API or a polyfill.

Example

const zbase32 = require ('zbase32'):

zbase32.encode (new TextEncoder ('utf-8').encode ('hello'));
// => 'pb1sa5dx'

new TextDecoder ('utf-8').decode (zbase32.decode ('pb1sa5dx'));
// => 'hello'

License

Copyright 2016 Kuno Woudt kuno@frob.nl

This program is free software: you can redistribute it and/or modify it under the terms of copyleft-next 0.3.1. See copyleft-next-0.3.1.txt.

About

This zbase32 library encodes ArrayBuffers to zbase32 encoded strings and back.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.9%
  • Shell 3.1%