Crates.io | finance_tokenizer |
lib.rs | finance_tokenizer |
version | 0.1.0 |
source | src |
created_at | 2020-08-03 03:01:36.321448 |
updated_at | 2020-08-03 03:01:36.321448 |
description | A finacne tokenization library |
homepage | |
repository | https://github.com/chmoder/finance_tokenizer/ |
max_upload_size | |
id | 272388 |
size | 12,277 |
Financial Tokenizer is a library for tokenizing credit card data.
[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)
};
Tokenize Credit Cards
blake3 hash support
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.