Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chmoder/finance_tokenizer
https://github.com/chmoder/finance_tokenizer
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chmoder/finance_tokenizer
- Owner: chmoder
- License: mit
- Created: 2020-08-02T16:27:05.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-03T02:59:52.000Z (over 4 years ago)
- Last Synced: 2024-10-31T12:13:00.121Z (18 days ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Financial Tokenizer
Financial Tokenizer is a library for tokenizing credit card data.
#### add tokenizer as a dependency to Cargo.toml
```toml
[dependencies]
financial_tokenizer = "0.1.0"
``````rust,norun
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
- Tokenize [Credit Cards](https://github.com/chmoder/credit_card)- blake3 hash support
# 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.