Saving "Encrypted" Data 
Author Message
 Saving "Encrypted" Data

What's the easiest way to save data to a file so that it's somewhat
difficult to edit.  In other words, I just want to be able to save
data to a file so that it can't be editted with a text editor.  I was
considering encoding by playing with the bits of each byte but that
seems to be difficult with VB.

Also, is there a quick explanation of how to write code in C/C++ and
then put it in a DLL?  Or should I break down and buy a book? :)

Thanks.



Fri, 19 Sep 1997 03:00:00 GMT  
 Saving "Encrypted" Data

Quote:
>What's the easiest way to save data to a file so that it's somewhat
>difficult to edit.  In other words, I just want to be able to save
>data to a file so that it can't be editted with a text editor.  I was
>considering encoding by playing with the bits of each byte but that
>seems to be difficult with VB.

There are a few files available, one is called crypt.zip (available at ftp.cica.indiana.edu/pub/win3/programming/vbasic).

It is a simple .bas file with a function that encrypts anything you send into it.

Quote:
>Also, is there a quick explanation of how to write code in C/C++ and
>then put it in a DLL?  Or should I break down and buy a book? :)

A quick explination.... I've read hundreds (well, 5) FAQ's on it, about 20 pages from my
Turbo C book, and I still can't get a DLL to work without a memory error. If anyone knows how,
could you send me some code?

I think you have to define the function as: int FAR Pascal _export functname (...)

Jeff.

--
Jeff Evans

http://www-bprc.mps.ohio-state.edu/cgi-bin/hpp/home.html



Sat, 20 Sep 1997 03:00:00 GMT  
 Saving "Encrypted" Data

Quote:

> What's the easiest way to save data to a file so that it's somewhat
> difficult to edit.  In other words, I just want to be able to save
> data to a file so that it can't be editted with a text editor.  I was
> considering encoding by playing with the bits of each byte but that
> seems to be difficult with VB.

> Also, is there a quick explanation of how to write code in C/C++ and
> then put it in a DLL?  Or should I break down and buy a book? :)

> Thanks.

The easiest to do (and break) encryption is to do an exclusive or on
the data just before you write it.  When you read it, the first thing
you do is an exclusive or again and its back (Note: the value you XOR
it with _must_ be the same both times.)
BTW, haven't tried this in VB but it works well in C


Mon, 22 Sep 1997 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. "Save Data with Report" - .net version

2. AVI "encrypting"

3. *"*-.,._,.-*"* I"LL TRADE VISUAL C++ FOR VBASIC *"*-.,_,.-*"*

4. Disabling "save" or "save as" on a form

5. "Save" and "Save As"

6. GetObject("","InternetExplorer.Application") fails in Excel VBA

7. SysCmd 603, "path","path"

8. Disabling "BACK"/"FORWARD" buttons

9. Loop print "VARIABLE", "VARIABLE"

10. DLL or something like "#"#ยค#"!"#

11. Disabling "BACK"/"FORWARD" buttons

12. CreateObject("Excel","//server"), MsgBox output

 

 
Powered by phpBB® Forum Software