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

Password Protect

Hi I've made this notepad at http://lukes.netii.net/ and people can make new notes by putting /?file=example.txt at the end of the URL, but if someone makes a easy to guess file like 1.txt anyone can find & edit it.

On my notepad I only want one new thing;

I want a Textbox at the bottom that says "Enter Password (Optional)" if a user enters a pass it password protects that note, but if no password is entered the note is not protected?

Example: this note /?file=protect.txt is password protected, everytime someone tries to goto it they have to enter the password to edit or view it?
You could do one of the following:

1. Use a database and save all of the passwords in it. If the person has a password on their notepad then it will save into the database and check if their passwords is correct when they try to reopen it.
2. Encrypt the data with their password which means that you could check if the decrypt value is correct or not and then continue if it is.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by FearJul 1, 2018 01:20 PM 6 183 Jul 1, 2018 01:20 PM
Last Post: tweety
by FabricFeb 9, 2014 10:10 AM 9 121 Feb 9, 2014 10:10 AM
Last Post: MrCortex
by Webman.ioAug 8, 2012 01:46 PM 2 99 Aug 8, 2012 01:46 PM
Last Post: MuGen-7