Sinisterly

Full Version: Mac Folder Locker
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Folder Locker
Hello! I am new to python, and I made a little project called Folder Locker. I spent about 4 hours woking on it. I started off with only knowing input, print, if, elif, and else. I then got my way up to assigning a variable at the beginning of the file for e.x. making it to where I only have to put the version number in one place instead of multiple. I just needed something to do for fun cus I was bored, I hope you like it.
Check it out here!
UPDATE
-=-=-=--=-=-=-=-=-

I am currently adding where you will pick what folder you want to hide. E.T.A.: 2/24/17 <-- may be before!
i'll try out your script mate. good share
Looks nice man, one question though. Are you storing the password in plaintext? It seems that way.
(02-22-2017, 12:56 AM)Bish0pQ Wrote: [ -> ]Looks nice man, one question though. Are you storing the password in plaintext? It seems that way.

Yes, as I am new to python. When I get a bit more advanced, I will upgrade, it hides the txt file every single time the script is ran, just incase!
(02-22-2017, 04:07 AM)Synthx Wrote: [ -> ]
(02-22-2017, 12:56 AM)Bish0pQ Wrote: [ -> ]Looks nice man, one question though. Are you storing the password in plaintext? It seems that way.

Yes, as I am new to python. When I get a bit more advanced, I will upgrade, it hides the txt file every single time the script is ran, just incase!

Bad idea. You should hash it (salt comes later) and compare to hash, not too hard.

Everyone has to start somewhere though, the easiest way to learn a language imo is to do a project in it. Add hashed passwords and features, continue building up until you feel it is finished, then move on to a new project.
(02-22-2017, 07:02 AM)Ender Wrote: [ -> ]
(02-22-2017, 04:07 AM)Synthx Wrote: [ -> ]
(02-22-2017, 12:56 AM)Bish0pQ Wrote: [ -> ]Looks nice man, one question though. Are you storing the password in plaintext? It seems that way.

Yes, as I am new to python. When I get a bit more advanced, I will upgrade, it hides the txt file every single time the script is ran, just incase!

Bad idea. You should hash it (salt comes later) and compare to hash, not too hard.

Everyone has to start somewhere though, the easiest way to learn a language imo is to do a project in it. Add hashed passwords and features, continue building up until you feel it is finished, then move on to a new project.

Yeah, I know, this was just a starter project that came from a small snippet from the PDF im reading.
This was in the pdf, and it sparked the idea for me to make the folder locker, I legit stopped when I saw this, which was from page 1 or 2, and started coding, I got the vast majority done before asking about stuff like clear screen, and exit, and def Main():
Code:
passwordFile = open('SecretPasswordFile.txt')
secretPassword = passwordFile.read()
print('Enter your password.')
typedPassword = input()
if typedPassword == secretPassword:
  print('Access granted')
elif typedPassword == '12345':
  print('That password is one that an idiot puts on their luggage.')
else:
  print('Access denied')
(02-22-2017, 07:02 AM)Ender Wrote: [ -> ]Bad idea.  You should hash it (salt comes later) and compare to hash, not too hard.

Everyone has to start somewhere though, the easiest way to learn a language imo is to do a project in it.  Add hashed passwords and features, continue building up until you feel it is finished, then move on to a new project.

Perfectly said.

I was going to mention hashing, but you've nailed It.
I added a small change to the code to lower the file size. Check the pull request.

(02-21-2017, 07:16 PM)Synthx Wrote: [ -> ]
Folder Locker
Hello! I am new to python, and I made a little project called Folder Locker. I spent about 4 hours woking on it. I started off with only knowing input, print, if, elif, and else. I then got my way up to assigning a variable at the beginning of the file for e.x. making it to where I only have to put the version number in one place instead of multiple. I just needed something to do for fun cus I was bored, I hope you like it.
Check it out here!
(02-22-2017, 04:28 PM)johnathon Wrote: [ -> ]I added a small change to the code to lower the file size. Check the pull request.

(02-21-2017, 07:16 PM)Synthx Wrote: [ -> ]
Folder Locker
Hello! I am new to python, and I made a little project called Folder Locker. I spent about 4 hours woking on it. I started off with only knowing input, print, if, elif, and else. I then got my way up to assigning a variable at the beginning of the file for e.x. making it to where I only have to put the version number in one place instead of multiple. I just needed something to do for fun cus I was bored, I hope you like it.
Check it out here!

oh wow, that's so useful, I like that a lot, wow, I will definitely use that from now on! thanks for that!
Thanks very much for this!
Pages: 1 2