zbase32
2021-04-26 22:23:31 Author: github.com(查看原文) 阅读量:49 收藏

This branch is 1 commit ahead of warpr:master.

Pull request Compare

Files

Permalink

Failed to load latest commit information.

Type

Name

Latest commit message

Commit time

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'

Copyright 2016 Kuno Woudt [email protected]

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

Readme


文章来源: https://github.com/projectdiscovery/zbase32
如有侵权请联系:admin#unsafe.sh