Data Vault

Data Vault is a library for storing and retrieving Credit Card data via Tokens.

add data_vault as a dependency to Cargo.toml

toml data_vault = "0.1.3"

```rust,norun use creditcard::CreditCard; use datavault::{RedisDataVault, DataVault};

let vault = RedisDataVault::new();

let cc = CreditCard { number: "4111111111111111".tostring(), cardholdername: "Graydon Hoare".tostring(), expirationmonth: "01".tostring(), expirationyear: "2023".tostring(), brand: None, securitycode: None };

let token = vault.storecreditcard(&cc).await; let creditcard = vault.retrievecreditcard(&token).await; asserteq!(credit_card.number, cc.number) ```

Current Features

Future Features

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.