mila Posted August 24, 2010 Share Posted August 24, 2010 Hi All, I want ask some question about decrypt File. I have Encrypt File (.ini) and put in -> @ScriptDir & "\MasterListEnc.ini" When i want to use that file, i have to decrypt file like this : _Crypt_DecryptFile(@ScriptDir & "\MasterListEnc.ini", @ScriptDir & "\MasterList.ini", pass, $CALG_DES) It work to decrypt & read the data. But the problem is when i run my program, decrypt file will show. My question is how to hide decrypt file when i run my application? I need help. Thank U. Link to comment Share on other sites More sharing options...
omikron48 Posted August 24, 2010 Share Posted August 24, 2010 Why not just encrypt the text, store it in a file, then read it and decrypt it from memory. Link to comment Share on other sites More sharing options...
mila Posted August 24, 2010 Author Share Posted August 24, 2010 Hi Omikron48, Can u give me example to read and decrypt from memory? Thanks. Link to comment Share on other sites More sharing options...
omikron48 Posted August 24, 2010 Share Posted August 24, 2010 Look at _Crypt_EncryptData and _Crypt_DecryptData. The basic idea is that you store your data as encrypted text inside a file. When your program runs, it reads the encrypted text from the file then stores it in a variable. You then decrypt the data while it's in memory then process it from there. Afterwards, you just encrypt your data again then write it into the file. Link to comment Share on other sites More sharing options...
mila Posted August 24, 2010 Author Share Posted August 24, 2010 I understand what u mean. But i already have .ini file encrypted, it contain hundred data. my .ini format : [1] NAME = A DIV = CH EMAIL = a@ccc.com TELEPON = n/a [2] NAME = B DIV = CH EMAIL = b@ccc.com TELEPON = n/a ' ' ' [100] if i using _Crypt_EncryptData, _Crypt_DecryptData i have to change my format file. How to Encrypt .ini file using _Crypt_EncryptData then decrypt it again? Link to comment Share on other sites More sharing options...
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