Morthawt Posted April 23, 2018 Posted April 23, 2018 When you are encrypting data, I am used to setting the algorithm. But I saw $CALG_USERKEY in the documentation but I have no context as to what algorithm that is. The documentation says it is value 0. I would appreciate a heads up on what $CALG_USERKEY is for? Thanks. Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials.
TheXman Posted April 23, 2018 Posted April 23, 2018 (edited) If you look at the help file for both the _Crypt_EncryptData and _CryptEncryptFile functions, then you will see that it says that the $vCryptKey parameter can be either a password or a handle. If you are using a handle, then you must use $CALG_USERKEY for the $iAlgID parameter for the _Crypt_EncryptData and _CryptEncryptFile functions. The _Crypt_DeriveKey function lets you create a key using the specified encryption method (and hashing method if supplied). The return value from the _Crypt_DeriveKey function is the handle that you would supply to the _Crypt_EncryptData and _CryptEncryptFile functions. _Crypt_EncryptData _Crypt_EncryptFile _Crypt_DeriveKey Edited April 23, 2018 by TheXman Added references to the commands which can be clicked to go to the help file. CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now