String outZip = "C:\\Encrypt\\Encrypted.zip" įileInfo outzipFile = new FileInfo(outZip) X509Certificate2Collection signingCert = currentCerts.Find(X509FindType.FindBySubjectDistinguishedName,certName, false) ĮventLog.WriteEntry("Cert Obtained successfully") X509Certificate2Collection currentCerts = certCollection.Find(X509FindType.FindByTimeValid, DateTime.Now, false) X509Certificate2Collection certCollection = keystore.Certificates X509Store keystore = new X509Store(StoreLocation.LocalMachine) Private X509Certificate2 getKey(string certName) KeyStore = new X509Store(StoreLocation.LocalMachine) Private 509Certificates.X509Store keyStore However this line "byte keyDecrypted = rsaProvider.Decrypt(KeyEncrypted, false) " in the decryption portion gave me "Bad Data". Hi, I am doing a project which encrypts and decrypts files in C#.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |