Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 515
  • Last Modified:

Encrypt - Decrypt text


 I am trying to encrypt and decrypt text in my Delphi app. And i want to be   able to save the result ( encrypted text in file a file and load it back eg..
 from .INI file ). I have seen couple of functions here on EE but i can't find
 any that can save it in file without return sign.

 Konni the Saint
0
saint10
Asked:
saint10
1 Solution
 
EpsylonCommented:
Here's a component that does quite good encryption:

http://www5.ewebcity.com/epsylon/download.asp?file=CryptLib.zip
0
 
saint10Author Commented:
brilliant Epsylon.

thanks
0
 
bryan7Commented:
you can pass the encripted text to HEX numbers so
the text can be read from INI by lines
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
PsylordCommented:
Mmmm... Encryption.
0
 
saint10Author Commented:
bryan7 - samples?
0
 
bryan7Commented:
var a:integer;

for a:= 1 to length(mystring) do
  b:= b+inttohex(ord(mystring[a]));

you can use this after having encripted the text,
this way the final text will be only characters
from A to F and 0 to 9 so you can read/write
to a stringlist and save/load to file

the only problem is that the text will be doubled...

when you want to desencript you must do the reverse..

bryan
0
 
bryan7Commented:
b is a string var
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now