Board Logo
« A simple password protector »

Welcome Guest. Please Login or Register.
Jan 21st, 2018, 12:49am


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Please use the forums Search feature before asking.
Please post code using the code box described in Format Your Messages.
This will keep indentation, separate it better form the message and prevent gibberish.
If the code is too long for one post or additional files are needed, upload a ZIP archive to the Just BASIC Files Archive Site.

« Previous Topic | Next Topic »
Pages: 1 2  Notify Send Topic Print
 hotthread  Author  Topic: A simple password protector  (Read 6130 times)
mihek
New Member
Image


member is offline

Avatar




Homepage PM

Gender: Male
Posts: 12
xx Re: A simple password protector
« Reply #15 on: Dec 30th, 2006, 06:19am »

these is a modified version of tasp's code.
Code:
[start]
input "Type your password:";pass$
IF pass$ = "hello" Then
print "Correct!"
ELSE
print "INCORECT, SELF ERRASING OF FILES BEGINS IN 5 SECONDS!! RETIPE PASWORD TO END SELFDISTRUCT SIQUINCE!!!"
goto [start]
END IF
Run "notepad.exe"
END
 


Code modified by Janet to shorten annoying extra long lines that require horizontal scrollbars for viewing and distorted browser display. Also, added a proper END statement. The content and intent of the code remains as the original. - Janet
« Last Edit: Dec 30th, 2006, 07:28am by Janet Terra » User IP Logged

Kaplooey
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 6
xx Re: A simple password protector
« Reply #16 on: Feb 24th, 2011, 3:13pm »

Well, This meets standards... I tested it myself, and when I type the password right the program opens but when it's wrong it not opens. It's a start... Still working on.

Code:
'Specify Password Here
password$ = "password"
'Specify File Here
file$ = "notepad.exe"
Input "Please Type the password ";guess$
if guess$ <> password$ then goto [wrong]
if guess$ = password$ then goto [right]
[wrong]
Print "Password is incorrect, sorry"
end
[right]
run file$
 
User IP Logged

Rod
Administrator
ImageImageImageImageImage


member is offline

Avatar

Graphics = Goosebumps!


PM

Gender: Male
Posts: 3151
xx Re: A simple password protector
« Reply #17 on: Feb 24th, 2011, 3:21pm »

This is an old thread. If you can't see the years in the dates beside each post then click on profile link in the title bar at the top of this page, scroll down to the date field and set it to a format that shows you the year. Then save your changes.
User IP Logged

Kaplooey
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 6
xx Re: A simple password protector
« Reply #18 on: Mar 1st, 2011, 3:53pm »

on Feb 24th, 2011, 3:21pm, Rod wrote:
This is an old thread. If you can't see the years in the dates beside each post then click on profile link in the title bar at the top of this page, scroll down to the date field and set it to a format that shows you the year. Then save your changes.


Just noticed that.... ah, well thanks
User IP Logged

chrisd93
New Member
Image


member is offline

Avatar




PM


Posts: 2
xx Re: A simple password protector
« Reply #19 on: Jul 2nd, 2011, 12:47pm »

Hello, i just started coding 2 days ago, and this is what i came up with!
Code:
Password$ = ""
WHILE Password$ <> "open"
    PROMPT "Enter your password";Password$
    If Password$ = "open" THEN
        Run "Notepad.exe"
    ELSE
        NOTICE "Try again"
    END IF
WEND
END


 
User IP Logged

Jashandeep
New Member
Image


member is offline

Avatar




PM


Posts: 6
xx Re: A simple password protector
« Reply #20 on: Jan 12th, 2012, 07:06am »

Hey just tell me the programming language in which you need that code i will make for you.
User IP Logged

Jamie
Senior Member
ImageImageImageImageImage


member is offline

Avatar

I try to do things right, it's often wrong, but I try.


Homepage PM

Gender: Male
Posts: 1228
xx Re: A simple password protector
« Reply #21 on: Jan 12th, 2012, 07:14am »

on Jan 12th, 2012, 07:06am, Jashandeep wrote:
Hey just tell me the programming language in which you need that code i will make for you.


I think you miss the point here completely, the programming lang is JustBasic, this is the JustBasic Forum.

This thread is actually more than 5 years old.
User IP Logged

If you're ever being chased by a police dog, try not to go through a tunnel, over a seesaw, then jump through a hoop of fire. They're trained for that stuff

Home Integration & Automation http://www.jaylexsoftware.co.uk/

In the UK? Like DIY SOS on the BBC visit http://www.DIYSOSForum.co.uk
Pages: 1 2  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls