Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Password Program
#1
I'm tired of using other people's password programs!
I've written my own. It supportes the backspace key:

Code:
CLS
PRINT "Enter Password: ";
row = 1
col = 17
LOCATE row, col
DO
press$ = INKEY$
IF press$ <> "" AND press$ <> CHR$(8) THEN
IF press$ = CHR$(13) THEN EXIT DO
LOCATE row, col
PRINT "*";
pswd$ = pswd$ + press$
col = col + 1
LOCATE row, col
END IF
IF press$ = CHR$(8) AND col - 1 >= 17 THEN
a$ = LEFT$(pswd$, LEN(pswd$) - 1)
col = col - 1
LOCATE row, col: PRINT " ";
pswd$ = a$
END IF
LOOP
PRINT CHR$(13) + "Password you entered: "; pswd$
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#2
er... I think everyone here has once made their own, and still knows how to make one
Reply
#3
I don't see the problem here. Maybe that code could be useful for someone, dunno...
img]http://usuarios.vtr.net/~disaster/sigs/annoyizer.php[/img]
Reply
#4
Maybe I'm wrong, but a while back someone asked for this.
I guess it's a sort of useless post...Sorry.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#5
I was playing around with a password program ages ago, when another site (I don't know what site) was asking for a password program. You can use your password like this: get a password, get the ascii code for each character in the password, then encode the numbers using a formula and write these numbers to a file. Then if you want a game cheat to have a password (or some similar situation), you pull the encoded ascii codes from the file, decode them and compare with what the user has entered. This stops people looking through your code for the passwords to unlock cheats. If people go to the file, all they get is the numbers, and they will have to substitute these numbers individually into the formula to get the password, and who really has the time?

If anyone is interested, I will revive this project and post it up here.
Reply
#6
Just make up a veeeerrrrryyy good formula Smile lol
Reply
#7
or you could just compile it...
Reply
#8
When some of us make our programs we post the source with the exe....

Is anybody interested, or shall I not bother?
Reply
#9
well, if the code is given, you can always open it in QB and delete the password code, so...

This recalls me in the time of 8 bits computers, when programs were loaded from tape at 1500 bps so they took two or three minutes to load. The BASIC programs auto-ran from the 1st file, and this file was:

Code:
1 IF INKEY$<>"A" THEN NEW

You had to know that and press "A" during the load, so when the code loaded and was ran, A was pressed and the program was not cleared. If you were not pressing "A"... NEW cleared the BASIC memory Tongue - Sorry not applicable to QB
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#10
Quote:Just make up a veeeerrrrryyy good formula Smile lol
I actually wrote a simple encryption code.
It took apart the string, and increased the ACIII value of every char by 50.
Naturally, it didn't work with any char over the maximum value of ASCII (FFh?)-50.
I tried writing a better one...with tag characters written to a file, and random encryption codes...but I haven't finished that yet 8)
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)