Shared<YCrypter> pCrypter = make_shared<YCrypter>();
cryptograpy_key key("MPGH"); // Cryptograpy key
pCrypter->EncryptFile("exe.exe", "encrypted.data", key); // Encrypt the file
// Decrypt encrypted data to be able to use the exe like normal again (or dll or whatever you stored)
pCrypter->DecryptFile("encrypted.data", "newexe.exe", key);
// Remember that the key must always be the same, you cannot encrypt a file with key 'MPGH' and then try to decrypt it with 'mpgh'


![=]](/forum/images/emotions/=].gif)
![=]](/forum/images/emotions/=].gif)
![=]](/forum/images/emotions/=].gif)