Solved

Encrypt - Decrypt text

Posted on 2000-04-14
7
509 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

752 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