Skip to content

This repository contains code related to Rust models encryption and decryption

License

Notifications You must be signed in to change notification settings

AbrarNitk/encrypted_id

Repository files navigation

Encrypted ID

License: MIT Crates.io Build Status

Read more about this library on: fifthtry.com/abrar/encrypted_id/.

Usage

[dependencies]
encrypted_id = "0.1.5"
fn main() {
    encrypted_id::init("df(vh!3*8e21@qca#3)w#7ta*z#!bhsde43&#iez3sf5m1#h6l");
    let ekey = encrypted_id::encrypt(5, "sub_key_foo").unwrap();
    let id = encrypted_id::decrypt(&ekey, "sub_key_foo").unwrap();
    assert_eq!("E86VGQhfxb_9rxSfjnBqKg", ekey);
    assert_eq!(5, dkey);
}

About

This repository contains code related to Rust models encryption and decryption

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published