Skip to content

itera-io/crypto-service-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Crypto Service CSharp

This is a small common crypto library to encrypt/decrypt secret data. You can decrypt data that's encrypted through Crypto Service Go and vice versa

Installation

Use NuGet

Install-Package CryptoServiceCSharp

Link to install each version of CryptoServiceCSharp

Usage

After installation, you can register

services.AddTransient(ICryptoService, CryptoService)

in the DI container and inject the interface wherever you want.
Make sure that you've specified crypto-key as either an environment variable or a secret key. Example:

var encryptedData = _cryptoService.Encrypt(data, cryptoKey);
// var data = _cryptoService.Decrypt(encryptedData, cryptoKey);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages