finance_tokenizer

Crates.iofinance_tokenizer
lib.rsfinance_tokenizer
version0.1.0
created_at2020-08-03 03:01:36.321448+00
updated_at2020-08-03 03:01:36.321448+00
descriptionA finacne tokenization library
homepage
repositoryhttps://github.com/chmoder/finance_tokenizer/
max_upload_size
id272388
size12,277
Thomas Cross (chmoder)

documentation

https://docs.rs/finance_tokenizer

README

Financial Tokenizer

Financial Tokenizer is a library for tokenizing credit card data.

add tokenizer as a dependency to Cargo.toml

[dependencies]
financial_tokenizer = "0.1.0"
use credit_card::CreditCard;
use tokenizer::Tokenizer;

let cc = CreditCard {
    number: "4111111111111111".to_string(),
    cardholder_name: "Graydon Hoare".to_string(),
    expiration_month: "01".to_string(),
    expiration_year: "2023".to_string(),
    brand: Option::from("visa".to_string()),
    security_code: Option::from("123".to_string())
};
let token = Tokenizer::generate(&cc);
assert_eq!(token.len(), 64);
let token2 = Tokenizer::generate(&cc);
assert_ne!(token, token2)
};

Current Features

Future Features

  • Swappable hash functions
  • Tokenize other data types. (String, Vec, bytes, ...)
  • Tokenize debit cards, bank accounts, and other financial data

Notice:

This is under development right now, so interfaces and apis will be changing. If you are interested in using this please create an issue or reach out with your feature request so I can help add it.

Commit count: 0

cargo fmt