Discussion:
Encryption in Clarion
(too old to reply)
Krys
2007-03-17 02:20:30 UTC
Permalink
Hi

I'm searching for an decryption algorithm used in old DOS clarion
databases (*.DAT files).
One guy told me once that to decrypt, i have to make in some way (dont
know what way) a 16-bit word from password, and then XOR the data with
this word.
Could anybody explain me how to create this 16-bit word and how to use it?

thanks
Krystian
Ian Holdsworth
2007-03-19 13:26:22 UTC
Permalink
Krystian

Using the Xor technique is an extremely weak way of encrypting your
data. If this is for a windows app you'd be better off looking at the
Windows Crypto API There's a good article by Ron Webb on Clarion Mag
http://www.clarionmag.com/cmag/v6/v6n05crypto1.html

HTH
Post by Krys
Hi
I'm searching for an decryption algorithm used in old DOS clarion
databases (*.DAT files).
One guy told me once that to decrypt, i have to make in some way (dont
know what way) a 16-bit word from password, and then XOR the data with
this word.
Could anybody explain me how to create this 16-bit word and how to use it?
thanks
Krystian
Krys
2007-03-19 14:40:04 UTC
Permalink
On Mon, 19 Mar 2007 14:26:22 +0100, Ian Holdsworth
Post by Krys
Krystian
Using the Xor technique is an extremely weak way of encrypting your
data. If this is for a windows app you'd be better off looking at the
Windows Crypto API There's a good article by Ron Webb on Clarion Mag
http://www.clarionmag.com/cmag/v6/v6n05crypto1.html
HTH
I'm not searching for a good encryption algorithm, but for decryption
algorithm for existed database.
It's an old DOS Clarion database, version 2, it contains *.DAT, *.K?? and
*.MEM files. One of these files is encrypted and i have to tamper with
this.
Ian Holdsworth
2007-03-19 15:16:41 UTC
Permalink
Do you have the original EXE for the file?

If so the password will almost certainly be there in plain text next
to the file definition for the file in the EXE.

HTH
Post by Krys
On Mon, 19 Mar 2007 14:26:22 +0100, Ian Holdsworth
Post by Krys
Krystian
Using the Xor technique is an extremely weak way of encrypting your
data. If this is for a windows app you'd be better off looking at the
Windows Crypto API There's a good article by Ron Webb on Clarion Mag
http://www.clarionmag.com/cmag/v6/v6n05crypto1.html
HTH
I'm not searching for a good encryption algorithm, but for decryption
algorithm for existed database.
It's an old DOS Clarion database, version 2, it contains *.DAT, *.K?? and
*.MEM files. One of these files is encrypted and i have to tamper with
this.
Krys
2007-03-19 18:40:52 UTC
Permalink
I have the password too. But i need to read the table from my application
written in c#.
I'm able to read uncrypted files - i know the file structure, but i need
the possibility to read encrypted files too.
That's why i need decryption algorithm.


On Mon, 19 Mar 2007 16:16:41 +0100, Ian Holdsworth
Post by Ian Holdsworth
Do you have the original EXE for the file?
If so the password will almost certainly be there in plain text next
to the file definition for the file in the EXE.
HTH
Post by Krys
On Mon, 19 Mar 2007 14:26:22 +0100, Ian Holdsworth
Post by Krys
Krystian
Using the Xor technique is an extremely weak way of encrypting your
data. If this is for a windows app you'd be better off looking at the
Windows Crypto API There's a good article by Ron Webb on Clarion Mag
http://www.clarionmag.com/cmag/v6/v6n05crypto1.html
HTH
I'm not searching for a good encryption algorithm, but for decryption
algorithm for existed database.
It's an old DOS Clarion database, version 2, it contains *.DAT, *.K?? and
*.MEM files. One of these files is encrypted and i have to tamper with
this.
Ian Holdsworth
2007-03-20 09:46:14 UTC
Permalink
Krystian

Check your Email

Cheers
Post by Krys
I have the password too. But i need to read the table from my application
written in c#.
I'm able to read uncrypted files - i know the file structure, but i need
the possibility to read encrypted files too.
That's why i need decryption algorithm.
Post by Ian Holdsworth
Do you have the original EXE for the file?
If so the password will almost certainly be there in plain text next
to the file definition for the file in the EXE.
HTH
Post by Krys
On Mon, 19 Mar 2007 14:26:22 +0100, Ian Holdsworth
Post by Krys
Krystian
Using the Xor technique is an extremely weak way of encrypting your
data. If this is for a windows app you'd be better off looking at the
Windows Crypto API There's a good article by Ron Webb on Clarion Mag
http://www.clarionmag.com/cmag/v6/v6n05crypto1.html
HTH
I'm not searching for a good encryption algorithm, but for decryption
algorithm for existed database.
It's an old DOS Clarion database, version 2, it contains *.DAT, *.K?? and
*.MEM files. One of these files is encrypted and i have to tamper with
this.
Krys
2007-03-20 18:51:10 UTC
Permalink
On Tue, 20 Mar 2007 10:46:14 +0100, Ian Holdsworth
Post by Krys
Krystian
Check your Email
Cheers
Didn't received anything. maybe you sent it to wrong address. My email
account is "kryskow" and server is "wp.pl"

thanks
Ian Holdsworth
2007-03-22 14:33:48 UTC
Permalink
Got it now?
Post by Krys
On Tue, 20 Mar 2007 10:46:14 +0100, Ian Holdsworth
Post by Krys
Krystian
Check your Email
Cheers
Didn't received anything. maybe you sent it to wrong address. My email
account is "kryskow" and server is "wp.pl"
thanks
benebrady
2007-03-20 13:12:48 UTC
Permalink
Do a Google Search for a program called NYIT.EXE It will allow you to
create a 'password' that will allow you to open a Clarion .DAT file
without your knowing what the actual password is. Me and a buddy
cracked the .DAT encryption years ago and I'd have to look back at my
notes to see specifically what bytes in the header we had to XOR. Just
can't remember off the top of my head.

Ben E. Brady
Post by Krys
Hi
I'm searching for an decryption algorithm used in old DOS clarion
databases (*.DAT files).
One guy told me once that to decrypt, i have to make in some way (dont
know what way) a 16-bit word from password, and then XOR the data with
this word.
Could anybody explain me how to create this 16-bit word and how to use it?
thanks
Krystian
Krys
2007-03-22 15:20:12 UTC
Permalink
I could't find in Google any NYIT.EXE program, anyhow i don't need it - i
know the password.

If you could look back to your notes it would be great, i need to know the
algorithm how to get from password the 16-bit word and how to use it to
decrypt file.

thanks
Krystian
Post by benebrady
Do a Google Search for a program called NYIT.EXE It will allow you to
create a 'password' that will allow you to open a Clarion .DAT file
without your knowing what the actual password is. Me and a buddy
cracked the .DAT encryption years ago and I'd have to look back at my
notes to see specifically what bytes in the header we had to XOR. Just
can't remember off the top of my head.
Ben E. Brady
Post by Krys
Hi
I'm searching for an decryption algorithm used in old DOS clarion
databases (*.DAT files).
One guy told me once that to decrypt, i have to make in some way (dont
know what way) a 16-bit word from password, and then XOR the data with
this word.
Could anybody explain me how to create this 16-bit word and how to use it?
thanks
Krystian
Ian Holdsworth
2007-03-22 16:30:46 UTC
Permalink
Krystian

Another approach you could take is to write a Clarion DLL that reads/
writes to the file and expose it as an API. Then include the dll in
your C# app and update it that way. In essence that's what the API I
sent you would have done if you could have gotten it working.

Also you may get more help if you access this news group via
news.softvelocity.com as there's only a few of us that hang out at
this end.

HTH
Post by Krys
I could't find in Google any NYIT.EXE program, anyhow i don't need it - i
know the password.
If you could look back to your notes it would be great, i need to know the
algorithm how to get from password the 16-bit word and how to use it to
decrypt file.
thanks
Post by benebrady
Do a Google Search for a program called NYIT.EXE It will allow you to
create a 'password' that will allow you to open a Clarion .DAT file
without your knowing what the actual password is. Me and a buddy
cracked the .DAT encryption years ago and I'd have to look back at my
notes to see specifically what bytes in the header we had to XOR. Just
can't remember off the top of my head.
Ben E. Brady
Post by Krys
Hi
I'm searching for an decryption algorithm used in old DOS clarion
databases (*.DAT files).
One guy told me once that to decrypt, i have to make in some way (dont
know what way) a 16-bit word from password, and then XOR the data with
this word.
Could anybody explain me how to create this 16-bit word and how to use it?
thanks
Krystian
Loading...