It sounds exactly the way i would above functions to work with licence, however the above are just simple functions the keys would be d defined by the coder and what keys would be used to encode and code?
I ask you, please be specific. Encode IS NOT EQUAL encrypt.
You MUST distinguish these two fundamental difference.
You are using symmetric encryption/decryption. Both parties, the receiver and the sender will be using the same password.
Only one side defines the password ONCE. And hard codes it into the source file.
The other party has only access to the compiled binary, therefore cannot read the password.
At the top of your file, you would use a #define statement to set the hard coded password.
Then follow my lated out process to implement it correctly, please.
I repeat: Your current implementation is NOT ENCRYPTING anything!!!
It sounds exactly the way i would above functions to work with licence, however the above are just simple functions the keys would be d defined by the coder and what keys would be used to encode and code?
Maybe I got your question wrong, for encoding, the key parameter can be empty. You do not need a key for encoding.
Even if you pass a key to encode a uchar array, it will be ignored.
It sounds exactly the way i would above functions to work with licence, however the above are just simple functions the keys would be d defined by the coder and what keys would be used to encode and code?
It sounds exactly the way i would above functions to work with licence, however the above are just simple functions the keys would be d defined by the coder and what keys would be used to encode and code?
If we want to do things correctly, writing a password in clear in the source code is not safe either.