Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
benches/ | H | 03-May-2022 | - | 76 | 56 | |
fixtures/ | H | 03-May-2022 | - | 583 | 582 | |
src/ | H | 03-May-2022 | - | 525 | 371 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.cargo_vcs_info.json | H A D | 01-Jan-1970 | 74 | 6 | 5 | |
.gitignore | H A D | 24-Aug-2018 | 18 | 3 | 2 | |
.travis.yml | H A D | 24-Aug-2018 | 98 | 8 | 8 | |
Cargo.toml | H A D | 01-Jan-1970 | 1 KiB | 36 | 31 | |
Cargo.toml.orig-cargo | H A D | 14-Oct-2019 | 446 | 21 | 18 | |
LICENSE.md | H A D | 24-Aug-2018 | 1.1 KiB | 21 | 17 | |
README.md | H A D | 14-Oct-2019 | 1 KiB | 46 | 28 |
README.md
1# base-x 2 3[![Build Status](https://travis-ci.org/OrKoN/base-x-rs.svg?branch=master)](https://travis-ci.org/OrKoN/base-x-rs) 4 5This is a Rust fork of https://github.com/cryptocoinjs/base-x 6 7**WARNING:** This module is **NOT RFC3548** compliant, it cannot be used for base16 (hex), base32, or base64 encoding in a standards compliant manner. 8 9And this my very first Rust project: please review the source code! 10 11## Installation 12 13Add this to `Cargo.toml` file: 14 15```toml 16[dependencies] 17base-x = "0.2.0" 18``` 19 20## Usage 21 22```rust 23extern crate base_x; 24 25fn main() { 26 let decoded = base_x::decode("01", "11111111000000001111111100000000").unwrap(); 27 let encoded = base_x::encode("01", &decoded); 28 assert_eq!(encoded, "11111111000000001111111100000000"); 29} 30``` 31 32## Changelog 33 34- 0.2.0 35 36 Breaking change: alphabet has to be provided as an array of bytes instead of a string. 37 38- 0.1.0 39 40 initial version 41 42## Contributors 43 44- [Friedel Ziegelmayer](https://github.com/dignifiedquire) 45- [Maciej Hirsz](https://github.com/maciejhirsz) 46