I ‘am working on an application that protect files by encrypt it with CryptEncrypt() and use a session key, from documentation
I can’t find out what session it’s talking about . Is that means that if some one else takes my encrypted file to another machine (or on the same machine but different user) can not decrypted it even he has the password?
Can any one help me to clarify his point please.
Thanks in advance for your time.
No,
It’s common to generate the session key for both the encryption and decryption by generating a hash which matches a passphrase:
m_hKeycan now be used for encryption/decryption.or ..