harsh 0.2.2

Hashids implementation for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use harsh::Harsh;

fn main() {
    let harsh = Harsh::default();
    println!("{:?}", harsh.encode(&read_values()));
}

fn read_values() -> Vec<u64> {
    std::env::args()
        .skip(1)
        .filter_map(|n| n.parse::<u64>().ok())
        .collect()
}