Tungsten
![]() |
RSAMethods Class |
Replaces RSA. This code was adapted for NetStandard from an article published on CodeProject by Mathew John Schlabaugh in 2007. It is less complicated but works more often than my initial RSA implementation. See: https://www.codeproject.com/Articles/10877/Public-Key-RSA-Encryption-in-C-NET

Namespace: W.Encryption
Assembly: Tungsten.Encryption (in Tungsten.Encryption.dll) Version: 2.0.2

C#
public static class RSAMethods
The RSAMethods type exposes the following members.

Name | Description | |
---|---|---|
![]() ![]() | CreateKeyPair |
Generates a public/private key pair
|
![]() ![]() | Decrypt |
Decrypts a byte array which was previously encrypted with the Encrypt method
|
![]() ![]() | DecryptAsync |
Asynchronously decrypts a string which was previously encrypted with the Encrypt method
|
![]() ![]() | Encrypt |
Encrypts a byte array using the specified keysize and public key
|
![]() ![]() | EncryptAsync |
Asynchronously encrypts a string using the specified keysize and public key
|
![]() ![]() | LegalKeySizes |
Returns an arrary containing the supported key sizes
|
