Jump to content
Sign in to follow this  
mila

Decrypt

Recommended Posts

mila

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
omikron48

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
mila

Hi Omikron48,

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

Thanks.

Share this post


Link to post
Share on other sites
omikron48

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
mila

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.