public byte[] DecryptData(byte[] data)
 {
     using (RSACryptoServiceProvider rsaCryptoServiceProvider = RSAContainerFactory.CreateFromContainer(_containerName))
     {
         return(rsaCryptoServiceProvider.Decrypt(data, RSAEncryptionPadding.Pkcs1));
     }
 }
 public byte[] SignData(byte[] data)
 {
     using (RSACryptoServiceProvider rsaCryptoServiceProvider = RSAContainerFactory.CreateFromContainer(_containerName))
     {
         return(rsaCryptoServiceProvider.SignData(data, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1));
     }
 }
 public string ExportKey(bool includePrivate)
 {
     using (RSACryptoServiceProvider rsaCryptoServiceProvider = RSAContainerFactory.CreateFromContainer(_containerName))
     {
         return(rsaCryptoServiceProvider.ToXmlString(includePrivate));
     }
 }