https://github.com/telkomdev/netcrypsi
Custom crypto utility that wraps the DotNet cryptography API to make life easier (Digest, AES, HMAC, RSA, RSA Digital Signature)
https://github.com/telkomdev/netcrypsi
aes cryptography dotnet rsa
Last synced: 4 months ago
JSON representation
Custom crypto utility that wraps the DotNet cryptography API to make life easier (Digest, AES, HMAC, RSA, RSA Digital Signature)
- Host: GitHub
- URL: https://github.com/telkomdev/netcrypsi
- Owner: telkomdev
- License: mit
- Created: 2023-01-02T17:56:00.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T06:53:04.000Z (over 2 years ago)
- Last Synced: 2025-01-16T20:19:09.125Z (5 months ago)
- Topics: aes, cryptography, dotnet, rsa
- Language: C#
- Homepage:
- Size: 76.2 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## NetCrypsi (crypsi for DotNet C#)
Custom crypto utility that wraps the DotNet `cryptography` API to make life easier
[](https://github.com/telkomdev/NetCrypsi/actions/workflows/ci.yml)
### NetCrypsi is compatible with each other with the following libraries
- NodeJs https://github.com/telkomdev/crypsi
- Python https://github.com/telkomdev/pycrypsi
- Golang https://github.com/telkomdev/go-crypsi
- Java/JVM https://github.com/telkomdev/jcrypsi
- Javascript (React and Browser) https://github.com/telkomdev/crypsi.js### Features
- Asymmetric encryption with RSA
- Generate RSA private and public key
- Digital Signature with RSA private and public key using PSS
- Symmetric encryption with AES
- Message authentication code with HMAC
- Generate Hash with Common DIGEST Algorithm### Add `NetCrypsi` to your project
Create new Solution
```shell
$ mkdir MyApp
$ cd MyApp/
$ dotnet new sln -n MyApp
The template "Solution File" was created successfully.
```Create example console app inside `MyApp Solution`
```shell
$ dotnet new console -o MyApp.App
```Add `MyApp.App` to `MyApp Solution`
```shell
$ dotnet sln MyApp.sln add MyApp.App/MyApp.App.csproj
```Clone `NetCrypsi`
```shell
$ git clone https://github.com/telkomdev/NetCrypsi.git
```Add `NetCrypsi.Lib` to `MyApp Solution`
```shell
$ dotnet sln MyApp.sln add NetCrypsi/NetCrypsi.Lib/NetCrypsi.Lib.csproj
```Add Clone `NetCrypsi` to `MyApp.App` as a reference
```shell
$ dotnet add MyApp.App/MyApp.App.csproj reference NetCrypsi/NetCrypsi.Lib/NetCrypsi.Lib.csproj
```Check MyApp reference
```shell
$ dotnet list MyApp.App/MyApp.App.csproj reference
Project reference(s)
--------------------
..\NetCrypsi\NetCrypsi.Lib\NetCrypsi.Lib.csproj
```Edit `MyApp.App/Programm.cs`
```csharp
using System;
using System.Text;
using NetCrypsi.Lib;// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");Console.WriteLine(Digestx.MD5Hex(Encoding.UTF8.GetBytes("wuriyanto")));
```Run `MyApp.App`
```shell
$ cd MyApp.App/
$ dotnet run
Hello, World!
60E1BC04FA194A343B50CE67F4AFCFF8
```