Skip to content

C# (.NET) implementation of the SimpleCrypt used int QT

Notifications You must be signed in to change notification settings

HilcoTalen/SimpleCryptNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleCryptNet

C# (.NET) implementation of the SimpleCrypt used int QT

Usage like:

// Encrypt

SimpleCrypt simpleCrypt = new SimpleCrypt(0x3456ABCD);
simpleCrypt.SetIntegrityProtectionMode(IntegrityProtectionMode.ProtectionHash);
simpleCrypt.SetCompressionMode(CompressionMode.CompressionAlways);

string fileContent = File.ReadAllText(filePathText);
byte[] encryptedData = simpleCrypt.EncryptToByteArray(fileContent);
File.WriteAllBytes(filePath, encryptedData);

// Decrypt

SimpleCrypt simpleCrypt = new SimpleCrypt(0x3456ABCD);
string decryptedText = simpleCrypt.DecryptToString(File.ReadAllBytes(filePath));

About

C# (.NET) implementation of the SimpleCrypt used int QT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages