| View previous topic :: View next topic |
| Author |
Message |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Wed Jul 18, 2007 9:18 am Post subject: Name and Pass application [Delphi] |
|
|
I want to make a simple form, which says "Name" and "Pass" both edit boxes.
now, i dont want anything advanced, just use the statement
If edit1.text = Kevinnn then
begin
form2.show;
BUT what if i want BOTH pass and name to be correct? how do i do that, also is it possible to like encrypt your password? So lets say my pass is MSN (its not! Lol)
So if i type in MSN, then if i send it to someone (the program), and they crack it, they would be able to see which pass that makes it go on to form2. Is there any way i can encrypt this ?
|
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Jul 18, 2007 9:30 am Post subject: |
|
|
| Code: | if (edit1.text = Kevinnn) AND (edit2.text = Passwordhere) then
begin
form2.show;
end; |
_________________
|
|
| Back to top |
|
 |
Kevin Grandmaster Cheater Supreme
Reputation: 0
Joined: 07 Mar 2007 Posts: 1139 Location: Spiderman-World
|
Posted: Wed Jul 18, 2007 9:36 am Post subject: |
|
|
| Code: | if (edit1.text = ('Kevinnn')) AND (edit2.text = ('Passwordhere)) then
begin
form2.show;
end;
|
lol, how to encrypt?
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Wed Jul 18, 2007 9:37 am Post subject: |
|
|
| Code: |
if (edit1.text = 'username') AND (edit2.text = 'yourpassword') then
begin
Form2:=TForm2.Create(self);
Form2.ShowModal;
end;
|
Edit:
Damnit, blankrider posted before me =(
http://www.irnis.net/soft/xted/
Download the program from there. But first read everything on the page.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
Last edited by oib111 on Wed Jul 18, 2007 9:39 am; edited 1 time in total |
|
| Back to top |
|
 |
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Wed Jul 18, 2007 9:38 am Post subject: |
|
|
i forgot the '' lol
RUB IT IN EVERYONE
_________________
|
|
| Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Wed Jul 18, 2007 9:42 am Post subject: |
|
|
| Kevinnn wrote: |
lol, how to encrypt? |
You have A LOT of choices, but if you want something simple, go with the XOR encryption.
_________________
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Wed Jul 18, 2007 10:08 am Post subject: |
|
|
Let me actually explain xor encryption to what i learned about it.
Xor encryption uses a key to encrypt text. All Ascii letters/symbols/numbers are represented by a number. These numbers range from 0 to 256, these numbers are also called the ascii number.
In an XOR encryption program each letter of the key and the text are converted to ascii, then to binary. If you don't know binary is 0's and 1's.
The 0 or 1 from the key is xored against the 0 or 1 of the text. If the key is shorter than the text, it repeats. In XORing a 0 and 0 returns a 1 (true) and a 1 and 1 returns a 1 (true). Here is an example.
A | Z | A XOR Z
----+----+---------
0 | 0 | 1
1 | 1 | 1
0 | 0 | 1
0 | 1 | 0
0 | 1 | 0
0 | 0 | 1
0 | 1 | 0
1 | 0 | 0
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
|