Solved

Encrypt - Decrypt text

Posted on 2000-04-14
7
502 Views
Last Modified: 2012-05-04

 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
Comment
Question by:saint10
7 Comments
 
LVL 13

Accepted Solution

by:
Epsylon earned 50 total points
Comment Utility
Here's a component that does quite good encryption:

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

Author Comment

by:saint10
Comment Utility
brilliant Epsylon.

thanks
0
 
LVL 3

Expert Comment

by:bryan7
Comment Utility
you can pass the encripted text to HEX numbers so
the text can be read from INI by lines
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Expert Comment

by:Psylord
Comment Utility
Mmmm... Encryption.
0
 

Author Comment

by:saint10
Comment Utility
bryan7 - samples?
0
 
LVL 3

Expert Comment

by:bryan7
Comment Utility
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
 
LVL 3

Expert Comment

by:bryan7
Comment Utility
b is a string var
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now