FideliusCrypto 1.0.5
See the version list below for details.
dotnet add package FideliusCrypto --version 1.0.5
NuGet\Install-Package FideliusCrypto -Version 1.0.5
<PackageReference Include="FideliusCrypto" Version="1.0.5" />
<PackageVersion Include="FideliusCrypto" Version="1.0.5" />
<PackageReference Include="FideliusCrypto" />
paket add FideliusCrypto --version 1.0.5
#r "nuget: FideliusCrypto, 1.0.5"
#addin nuget:?package=FideliusCrypto&version=1.0.5
#tool nuget:?package=FideliusCrypto&version=1.0.5
FideliusCrypto 🔐
A .NET library for secure ECDH-based encryption using BouncyCastle. Provides key exchange, AES-GCM encryption, and HKDF key derivation.
📦 Installation
NuGet Package
Install the package via NuGet:
dotnet add package FideliusCrypto
🔑 KeyPair Generation
var keyPairGen = new FideliusKeyPairGeneration();
var result = keyPairGen.Generate();
🔒 Encryption
var keyPairGen = new FideliusKeyPairGeneration();
var sender = keyPairGen.Generate();
var requester = keyPairGen.Generate();
var encryptionRequest = new FideliusEncryptionRequest(
sender.PrivateKey,
sender.Nonce,
requester.PublicKey,
requester.Nonce,
"testString");
var encryptionService = new FideliusEncryptionService();
var response = encryptionService.Encrypt(encryptionRequest);
🔓 Decryption
var keyPairGen = new FideliusKeyPairGeneration();
var sender = keyPairGen.Generate();
var requester = keyPairGen.Generate();
var decryptionRequest = new FideliusDecryptionRequest(
"G3UUnMPvWxCt3kE7KZ6kSpfakoeo8sn/Fzo=",
requester.Nonce,
sender.Nonce,
requester.PrivateKey,
sender.PublicKey);
var decryptionService = new FideliusDecryptionService();
var response = decryptionService.Decrypt(decryptionRequest);
📝 Usage Example
Here's a complete example to demonstrate the usage of FideliusCrypto:
using FideliusCrypto;
class Program
{
static void Main(string[] args)
{
var keyPairGen = new FideliusKeyPairGeneration();
// Generate key pairs for sender and requester
var sender = keyPairGen.Generate();
var requester = keyPairGen.Generate();
// Create encryption request
var encryptionRequest = new FideliusEncryptionRequest(
sender.PrivateKey,
sender.Nonce,
requester.PublicKey,
requester.Nonce,
"This is a secret message.");
var encryptionService = new FideliusEncryptionService();
var encryptedResponse = encryptionService.Encrypt(encryptionRequest);
// Display encrypted message
Console.WriteLine("Encrypted message: " + encryptedResponse.EncryptedText);
// Create decryption request
var decryptionRequest = new FideliusDecryptionRequest(
encryptedResponse.EncryptedText,
requester.Nonce,
sender.Nonce,
requester.PrivateKey,
sender.PublicKey);
var decryptionService = new FideliusDecryptionService();
var decryptedResponse = decryptionService.Decrypt(decryptionRequest);
// Display decrypted message
Console.WriteLine("Decrypted message: " + decryptedResponse.DecryptedText);
}
}
🛠 Features
KeyPair Generation: Generate cryptographic key pairs for secure communication.
ECDH Key Exchange: Securely exchange keys using Elliptic Curve Diffie-Hellman (ECDH).
AES-GCM Encryption: Encrypt data with AES-GCM for authenticated encryption.
HKDF Key Derivation: Derive keys using HMAC-based Extract-and-Expand Key Derivation Function (HKDF).
🔗 Links
GitHub Repository: FideliusCrypto
NuGet Package: FideliusCrypto
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net6.0
- Portable.BouncyCastle (>= 1.9.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release of FideliusCrypto with ECDH key exchange, AES-GCM encryption, and HKDF support.