IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Crypt.pfx_certificates Class Reference

Public Member Functions

string GetEncryptedText (string PlainStringToEncrypt, string DigitalCertificateName)
 Constructor Author : Ranajit Biswal Date : 24th May 2007 Pupose : Used to Encrypt and Decrypt string using Digital certificate which has a Private Key. Requirement : WSE 2.0 and .Net Framework 2.0 More...
 
string GetDecryptedText (string EncryptedStringToDecrypt, string DigitalCertificateName)
 To Decrypt clear text using RSACryptoServer Provider and Digital Certificate having Private Key. More...
 

Static Public Member Functions

static X509Certificate2 LoadCertificate (StoreName storeName, StoreLocation storeLocation, string certificateName)
 
static byte[] DecryptByCert (byte[] encryptedData, bool fOAEP, X509Certificate2 certificate)
 
static byte[] EncryptByCert (byte[] plainData, bool fOAEP, X509Certificate2 certificate)
 
static string GetXmlKeyPair (X509Certificate2 certificate)
 
static string GetPublicKey (X509Certificate2 certificate)
 
static void UseCertificateDemo ()
 
static string DecryptEncryptedData (string Base64EncryptedData, string PathToPrivateKeyFile)
 

Static Private Member Functions

static byte[] Sign (string text, string certSubject)
 
static bool Verify (string text, byte[] signature, string certPath)
 
static void CertSignTest ()
 

Member Function Documentation

static X509Certificate2 IG.Crypt.pfx_certificates.LoadCertificate ( StoreName  storeName,
StoreLocation  storeLocation,
string  certificateName 
)
inlinestatic
static byte [] IG.Crypt.pfx_certificates.DecryptByCert ( byte[]  encryptedData,
bool  fOAEP,
X509Certificate2  certificate 
)
inlinestatic
static byte [] IG.Crypt.pfx_certificates.EncryptByCert ( byte[]  plainData,
bool  fOAEP,
X509Certificate2  certificate 
)
inlinestatic
static string IG.Crypt.pfx_certificates.GetXmlKeyPair ( X509Certificate2  certificate)
inlinestatic
static string IG.Crypt.pfx_certificates.GetPublicKey ( X509Certificate2  certificate)
inlinestatic
static void IG.Crypt.pfx_certificates.UseCertificateDemo ( )
inlinestatic
string IG.Crypt.pfx_certificates.GetEncryptedText ( string  PlainStringToEncrypt,
string  DigitalCertificateName 
)
inline

Constructor Author : Ranajit Biswal Date : 24th May 2007 Pupose : Used to Encrypt and Decrypt string using Digital certificate which has a Private Key. Requirement : WSE 2.0 and .Net Framework 2.0

string IG.Crypt.pfx_certificates.GetDecryptedText ( string  EncryptedStringToDecrypt,
string  DigitalCertificateName 
)
inline

To Decrypt clear text using RSACryptoServer Provider and Digital Certificate having Private Key.

Parameters
EncryptedStringToDecrypt
Returns
static string IG.Crypt.pfx_certificates.DecryptEncryptedData ( string  Base64EncryptedData,
string  PathToPrivateKeyFile 
)
inlinestatic
static byte [] IG.Crypt.pfx_certificates.Sign ( string  text,
string  certSubject 
)
inlinestaticprivate
static bool IG.Crypt.pfx_certificates.Verify ( string  text,
byte[]  signature,
string  certPath 
)
inlinestaticprivate
static void IG.Crypt.pfx_certificates.CertSignTest ( )
inlinestaticprivate

The documentation for this class was generated from the following file: