Skip to content

Commit

Permalink
Merge branch '#22-benchmark-project' of https://github.com/Cryptograp…
Browse files Browse the repository at this point in the history
  • Loading branch information
WingZer0o committed Oct 12, 2024
2 parents 5010931 + 9360eee commit e61d98c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions docs/EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,3 @@ BcryptWrapper bcrypt = new BcryptWrapper();
string password = "BCryptPasswordHasher!@#$%";
string hashed = bcrypt.HashPassword(password);
```

### Hybrid Encryption
- AES / RSA


## We currently have no other libraries benchmark.
```csharp
byte[] dataToEncrypt = Encoding.UTF8.GetBytes("What is that? A New Router that I see?");
// Initializer creates our AES key, AES Nonce, and RSA Key Pair for us.
AESRSAHybridInitializer initializer = new AESRSAHybridInitializer(256, 4096);
AESRSAHybridEncryptResult result = this._hybridEncryptionWrapper.EncryptAESRSAHybrid(dataToEncrypt, initializer);
byte[] plaintext = this._hybridEncryptionWrapper.DecryptAESRSAHybrid(initializer.RsaKeyPair.PrivateKey, result);
```


0 comments on commit e61d98c

Please sign in to comment.