https://github.com/basis-theory-labs/orm-tokenization-example
Example application showing how to tokenize sensitive data
https://github.com/basis-theory-labs/orm-tokenization-example
csharp dotnet dotnet-core encryption entity-framework tokenization
Last synced: 3 months ago
JSON representation
Example application showing how to tokenize sensitive data
- Host: GitHub
- URL: https://github.com/basis-theory-labs/orm-tokenization-example
- Owner: Basis-Theory-Labs
- Created: 2022-04-03T19:10:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-03T19:10:38.000Z (over 4 years ago)
- Last Synced: 2025-04-09T06:34:44.308Z (about 1 year ago)
- Topics: csharp, dotnet, dotnet-core, encryption, entity-framework, tokenization
- Language: C#
- Homepage: https://basistheory.com/
- Size: 3.91 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ORM Tokenization Example with Entity Framework
Example application to tokenize sensitive data with Entity Framework utilizing [Basis Theory's REST API](https://docs.basistheory.com/#getting-started).
## Requirements
1. [Basis Theory Account](https://basistheory.com)
1. [.NET 6](https://dotnet.microsoft.com/download/dotnet/6.0)
### TL;DR
The following is how to run the example application.
```bash
export BT_API_KEY=
dotnet run --project ORMTokenizationExample
```
## Lab How-To
1. Set up a [Basis Theory Account](https://portal.basistheory.com/register)
2. Set up a [server to server application](https://docs.basistheory.com/#applications-application-types) with token [create and read permissions](https://docs.basistheory.com/#permissions-permission-types).
- You can follow the .NET Quickstart [here](https://developers.basistheory.com/getting-started/quickstart-with-dotnet/) to set up your first application and .NET environment
3. Export the resulting API Key to your local shell `export BT_API_KEY=${API_KEY}`
4. Clone `git@github.com:Basis-Theory-Labs/orm-tokenization-example.git` and switch to it as your working directory.
5. Run the example application with `dotnet run --project ORMTokenizationExample`