How to decrypt a string encrypted by V FoxPro

2019-03-03 08:13发布

I have a program built in Visual Fox Pro which read and write information in a database, but the information is encrypted.

I have the source code so, I have the key (same key to encrypt and dencrypt) use to encrypt/decrypt. But I cannot get the algorithm used to encrypt/dencrypt.

I need this in order to create a new program with C# which can read the information and save it in another DB.

Below you have some examples of the information encrypted:

ùœ¢Qa³•ù¼?-
pJ´’ˆò»Æ8-skYIÞµ§¬†Œ‚„Šç

럭IpAÔúùÈP@kJ´’ˆò»Æ8-skYIÞµ§¬†Œ‚„Šç

I read that VFP doesn't have a native algorithm to encrypt so the developer should use an external library. In the source code I cannot find anything, he just used encrypt function sending the text to encrypt and the key.

In the root folder there are the following DLL (maybe one of this has the code to encrypt) This is the first time I see something in VFP msvcr70.dll vfp7r.dll vfp7renu.dll vfp7resn.dll

2条回答
做自己的国王
2楼-- · 2019-03-03 08:45

If your VFP application was built on Visual MaxFrame then it contains its own encryption/decription functionality as a prg which is part of the framework(x3ed.prg).

It's basically a cypher with some modular logic to flip a couple of bits, but there are 2 variants.

If you have a special key then this is likely not it, but just in case. :)

查看更多
时光不老,我们不散
3楼-- · 2019-03-03 08:50

VFP does not have any native encryption functionality. Those DLLs you list are just the VFP 7 runtimes, and a Visual C++ runtime which the VFP 7 runtimes have a dependency on.

What I would do is:

  1. Download Process Explorer from sysinternals.com.
  2. Start it, then run your VFP program executable.
  3. Find your program EXE in Process Monitor processes column and click on it once.
  4. In the toolbar at the top, use the button to toggle between viewing handles and viewing DLLs. This will list each of these that the EXE has open.

I suspect it's Craig Boyd's library.

查看更多
登录 后发表回答