View Full Version : encryptet text files??
Jonas DK
09-18-2005, 01:22 PM
Hi
Anyone know if it is posible to have external text in an encryptet file feed into an AMS app and decryptet?
Ex. I have a project that fills a paragraph with text from a text file in the doc folder.
As it is every one can just open the text file in the doc folder and read the text.
What I want is some kind of encryption placed on the text file so that if you just open it in a text editor it will be rubish but when open thruogh the AMS app it is readable text.
The reason for this is that I have a program that reads most of its info from text files so that it is easy to update with out having to update the hole app.
Any surgestions?
Jonas DK
yosik
09-18-2005, 01:37 PM
Besides possible encryption schemes, you could have the text files as zip files which would dynamically open and populte whatever you would want in AMS.
These zip files could be password protected.
Yossi
Jonas DK
09-18-2005, 03:07 PM
Besides possible encryption schemes, you could have the text files as zip files which would dynamically open and populte whatever you would want in AMS.
These zip files could be password protected.
Yossi
I like the zip file idea...
The thing is to keep it as simple as posible.
anyone know if AMS will to read the zip file if you give it another file extension? . o O (thise will need some exploring...)
Jonas DK
TJ_Tigger
09-18-2005, 03:35 PM
anyone know if AMS will to read the zip file if you give it another file extension? . o O (thise will need some exploring...)
Jonas DK
sure can. Call it ZipFile.dat and AMS can still open it. :)
Jonas DK
09-18-2005, 03:53 PM
sure can. Call it ZipFile.dat and AMS can still open it. :)
thanks Tigger
that just saved me some teedies testing....
Jonas DK
yosik
09-19-2005, 01:45 AM
If you are interested in security, you can use another extension and have AMS change all these extensions back to zip at runtime, before extracting the files.
Yossi
Jonas DK
09-19-2005, 02:03 PM
Hi guys thanks for all the feed back.. Thats why I Love AMS so much...
great user forums....
I looked around in AMS for different solutions to this problem and found one I think I'm going to use.
I build 2 applications, an end-user application and a "text-implant" application
the implant application just takes a bunch of text files in a directory and encrypt them using the crypto plugin. I can then distribute the encrypted textfiles (with the extension .cpt) and use TextFile.ReadToString and then use crypto again to decrypt the string before displaying it in a paragraph.
need (I've never used the crypto plugin before... neat)
Jonas DK
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.