• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

benches/H03-May-2022-7656

fixtures/H03-May-2022-583582

src/H03-May-2022-525371

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D01-Jan-197074 65

.gitignoreH A D24-Aug-201818 32

.travis.ymlH A D24-Aug-201898 88

Cargo.tomlH A D01-Jan-19701 KiB3631

Cargo.toml.orig-cargoH A D14-Oct-2019446 2118

LICENSE.mdH A D24-Aug-20181.1 KiB2117

README.mdH A D14-Oct-20191 KiB4628

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