Solved

Encrypt - Decrypt text

Posted on 2000-04-14
7
510 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 13

Accepted Solution

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

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

Author Comment

by:saint10
ID: 2718189
brilliant Epsylon.

thanks
0
 
LVL 3

Expert Comment

by:bryan7
ID: 2718320
you can pass the encripted text to HEX numbers so
the text can be read from INI by lines
0
Independent Software Vendors: 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!

 

Expert Comment

by:Psylord
ID: 2718342
Mmmm... Encryption.
0
 

Author Comment

by:saint10
ID: 2718757
bryan7 - samples?
0
 
LVL 3

Expert Comment

by:bryan7
ID: 2719060
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
ID: 2719063
b is a string var
0

Featured Post

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month10 days, 18 hours left to enroll

628 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