RSAMethods Class

Tungsten Suite

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

Inheritance Hierarchy
SystemObject  W.EncryptionRSAMethods

Namespace:  W.Encryption
Assembly:  Tungsten.Encryption (in Tungsten.Encryption.dll) Version: 2.0.2
Syntax
C#
public static class RSAMethods

The RSAMethods type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateKeyPair
Generates a public/private key pair
Public methodStatic memberDecrypt
Decrypts a byte array which was previously encrypted with the Encrypt method
Public methodStatic memberDecryptAsync
Asynchronously decrypts a string which was previously encrypted with the Encrypt method
Public methodStatic memberEncrypt
Encrypts a byte array using the specified keysize and public key
Public methodStatic memberEncryptAsync
Asynchronously encrypts a string using the specified keysize and public key
Public methodStatic memberLegalKeySizes
Returns an arrary containing the supported key sizes
Top
See Also