|
-
Nov 13th, 2000, 11:02 PM
#1
Thread Starter
Member
i know how to store data in text files and stuff... is it possible to store data in the actual program? that way it doesn't write external files? i don't want anyone to read the file that will be written, but i don't want to have to write encryption or anything... i'd prefer it to stay in the program itself..
is this possible? or is my idea trash?
-
Nov 14th, 2000, 06:40 AM
#2
Use registry. And use encryption. Simplest encryptions code and decode with same function. It's not all that hard.
A very simple (en)crypt for strings:
Code:
Public Function strCrypt (Text As String) As String
Dim A As Integer
strCrypt = ""
For A = 1 To Len(Text)
strCrypt = strCrypt & Chr(255 - Asc(Mid(Text, A, 1)))
Next A
End Function
With some modifications you can make your very own crypter. I think best would be to make separated functions for crypting and decrypting.
Btw, it's kinda possible to store in to the actual exe, but it's VERY hard to do without many tries and looking the program with hex-editor. Don't do it - if you get it working, you've to do it again if you update the program.
Hope this helps,
-
Nov 14th, 2000, 06:44 AM
#3
Hyperactive Member
take a look at PropertyBag
td.
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|