Search the Community
Showing results for tags 'crypt.au3 and password'.
-
Hello at all, I wrote a script and would like to add a password to it. Compiling to an application is a "possibility to protect" the password against simple checks, but may there's a way to protect the password "more secure". So I checked online some options and found during my seach the Crypt.au3 including _Crypt_DeriveKey, _Crypt_EncryptData, _Crypt_DecryptData, but also after the whole day I did not understand how to use this functions The only thing I could understand is that it would be possible: - To fix something like the hash of secret password into script, which would be protected by an encryption key - The encryption key is generated by another password as a Hash - The encryption key is generated by another password of it's hash - Only if the other password was correctly given as an argument while command line start, the hash of secret password can be decrypted back to plaintext and used But I didn't understand until now: How to create the first script which creates the hash of secret password (protected by encryption key generated by another password as a Hash), which I can export e.g. to an .ini file How to create the second script which takes the given argument to decrypt secret password which from .ini file back to plaintext I read a lot about "there is no maximum secret way to protect passwords in scripts". I could understand the reason so far, so I prefer to do not start a discussion about that here Do someone have an simple example for that? Or may there's another way to "protect the secret password" more efficient, cause may I'm on completely wrong way? Thanks a lot for any help Kind regards Tralveller
- 8 replies
-
- password proctection
- password in script
- (and 3 more)