Sign in to follow this  
Followers 0
mila

Decrypt

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



Why not just encrypt the text, store it in a file, then read it and decrypt it from memory.

Share this post


Link to post
Share on other sites

Hi Omikron48,

Can u give me example to read and decrypt from memory?

Thanks.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0