C# Class UlteriusServer.Utilities.Security.Rsa

Mostrar archivo Open project: Ulterius/server Class Usage Examples

Public Properties

Property Type Description
PrivateKey System.Security.SecureString
PublicKey System.Security.SecureString

Public Methods

Method Description
Base64Encode ( string plainText ) : string
Decryption ( SecureString clientPrivateKey, string encryptedData ) : SecureString
GenerateKeyPairs ( ) : void
GetKeyPair ( ) : AsymmetricCipherKeyPair
SecureStringToString ( SecureString value ) : string
StringToSecureString ( string input ) : SecureString

Method Details

Base64Encode() public static method

public static Base64Encode ( string plainText ) : string
plainText string
return string

Decryption() public static method

public static Decryption ( SecureString clientPrivateKey, string encryptedData ) : SecureString
clientPrivateKey System.Security.SecureString
encryptedData string
return System.Security.SecureString

GenerateKeyPairs() public method

public GenerateKeyPairs ( ) : void
return void

GetKeyPair() public static method

public static GetKeyPair ( ) : AsymmetricCipherKeyPair
return Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair

SecureStringToString() public static method

public static SecureStringToString ( SecureString value ) : string
value System.Security.SecureString
return string

StringToSecureString() public static method

public static StringToSecureString ( string input ) : SecureString
input string
return System.Security.SecureString

Property Details

PrivateKey public_oe property

public SecureString,System.Security PrivateKey
return System.Security.SecureString

PublicKey public_oe property

public SecureString,System.Security PublicKey
return System.Security.SecureString