Skip to content

a Rust implementation for Clockwork Base32

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

hnakamur/rs-clockwork-base32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rs-clockwork-base32

Another Rust implementation of Clockwork Base32 which is a Base32 variant inspired by Crockford's Base32.

Install

Adding the following to the Cargo.toml in your project:

[dependencies]
clockwork_base32 = { git = "https://github.com/hnakamur/rs-clockwork-base32", tag = "0.1.0" }

Usage

Encode bytes to a String:

use clockwork_base32 as base32;
let encoded = base32::encode_to_string(b"Hello, world!");
assert_eq!(&encoded, "91JPRV3F5GG7EVVJDHJ22");

Decode bytes to a String:

use clockwork_base32 as base32;
let decoded = base32::decode_to_string(b"91JPRV3F5GG7EVVJDHJ22")?;
assert_eq!(&decoded, "Hello, world!");

See API documents for details.

License

Copyright (c) 2020 Hiroaki Nakamura

Licensed under either of

at your option.

Prior work

About

a Rust implementation for Clockwork Base32

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages