Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Delphi 

[Delphi] String Crypter [Snippet] [Clearing out old Delphi Folder]

For all of my Delphi tutorials and snippets check out: https://hackforums.net/showthread.php?tid=702578


Finished Result: [IMG]http://i277.photobucket.com/albums/kk68/sadr_disturbed/DelphiCrypter.jpg[/IMG]

Add two buttons, two labels, and 1 edit. Place them as I did in my finished result picture.

Code:
Code
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;
type
  TForm1 = class(TForm)
    Edit1: TEdit;
    Button1: TButton;
    Button2: TButton;
    Label1: TLabel;
    Label2: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    function encrypt(const Value : String) : String;
    procedure FormCreate(Sender: TObject);

  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;
implementation

{$R *.dfm}

function TForm1.Encrypt(const Value : String) : String;
var
  CIndex: integer;
begin
  Result := Value;
  for CIndex := 2 to Length(Value) do
  Result[CIndex] := chr(not(ord(Value[CIndex])));
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
label2.caption := Encrypt(Edit1.Text);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
label1.caption := Encrypt(label2.caption);
end;

Clearing out some of my old Delphi stuff, found this. Can't remember where I learned it from or even if I got it off of a website or if I just made it; if you find somewhere please pm me so I can add credits.
Hey, I'm realizing the same program too. How did you make the text start automatically on a new paragraph in the edit?
thx man :)
As no one has said thank you yet, here it comes: Thank you! :P probably will help me alot :)
[x]Written in C - 6KB binary [x]

[Celsius Loader] https://hackforums.net/showthread.php?tid=3238728
Thanks jackman glad you enjoyed this!
what method of encryption is this?
[Image: lolj.png]
not a single person has the time for that scenario
It just changes the order of the character code.
Meaning A would become something like G if it changed the order by 6 going forward
(Oct 29, 2010 12:42 PM)DrSponge Wrote:  It just changes the order of the character code.
Meaning A would become something like G if it changed the order by 6 going forward

usually code is self explanatory but I didn't get this one
thanks OP!
[Image: lolj.png]
not a single person has the time for that scenario
No problem glad everyone enjoyed it.
thank's mr Symbiotic for sharing
I have been looking for something like this for so long! :D thanks so much.
Reading old threads for fun.

Also for anyone thats interested: you could do this easier by using the component Lock Box 3
https://sourceforge.net/projects/tplockbox/
[Image: F2G97kn.png]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Delphi] by XoggJul 4, 2019 10:02 AM 5 377 Jul 4, 2019 10:02 AM
Last Post: Xogg
[Delphi] by VxV3n0mxVJan 4, 2018 07:37 PM 10 3,643 Jan 4, 2018 07:37 PM
Last Post: tcsh
[Delphi] by EmirejJul 23, 2017 11:40 AM 9 1,620 Jul 23, 2017 11:40 AM
Last Post: Xogg