Skip to main content

An easy python module to make a folder locker.

Project description

#Code import maskpass import base64 from colorama import Fore, init import time import os from tkinter import * init() tk=Tk() print("If you want to lock a hidden folder, It is highly recommended to hide the folder using command prompt. See the tutorial here : https://bit.ly/3Iazjpb") time.sleep(3) print("\n\nYou can also use this app to open URLs that you want. These URLs will be opened in your default browser.") time.sleep(3) a = int(input("\n\nIf you already know this step enter 1 and if not (It is highly recommended to complete first step): ")) if a == 1:

lockedDirectory = input("Enter your directory which is locked (Case sensetive, copy and paste the path): ")

dict = {'Arjun': b'cmFodWw=',
			'Hrishikesh': b'U2FuZGVlcA=='}
def signUp():
		print("\n===========Create Account============")
		name = input("Username : ")
		pwd = maskpass.askpass("Password : ")
		encpwd = base64.b64encode(pwd.encode("utf-8"))
		dict[name] = encpwd
def logIn():
	while True:
		print(Fore.RESET + "\n\n============Login Page==============")
		name = input("Username : ")
		pwd = maskpass.askpass("Password : ")
		encpwd = base64.b64encode(pwd.encode("utf-8"))
		password = dict[name]
		if(encpwd == password):
			print("Please wait while we are checking the login info...")
			time.sleep(3)
			print(Fore.GREEN + "Successfully logged in.")
			print("Here you are!")
			os.startfile(lockedDirectory) 
			exit()
		else:
			print("Please wait while we are checking the login info...")
			time.sleep(3)
			print(Fore.RED + "Login Failed. Please try again in 3 seconds. (This is done to prevent Brute Forcing)")
			time.sleep(3)		

signUp()
logIn()

elif a == 2: print("\n\nYou are not allowed to use this app unless you see that video tutorial.\n\n")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

folder_locker_python-2023.25.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

folder_locker_python-2023.25.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file folder_locker_python-2023.25.1.tar.gz.

File metadata

File hashes

Hashes for folder_locker_python-2023.25.1.tar.gz
Algorithm Hash digest
SHA256 2ff282bfa9313636a434b43943096fcbdd28b72f55e0296349da6e289612fb66
MD5 2f5e2064f909a1ebab084c175b406a9a
BLAKE2b-256 2330c8b9df47f3380e1c5538064cbef2e10b442d3484820e07dc04652c62fdab

See more details on using hashes here.

File details

Details for the file folder_locker_python-2023.25.1-py3-none-any.whl.

File metadata

File hashes

Hashes for folder_locker_python-2023.25.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de698784a86d8af314a692990b6f7e24d3f4b66dd8907b914af3ad677871da5b
MD5 e484553961dd594cae35fcafc366b47e
BLAKE2b-256 b899b1c8b1dff2055ac3a7d8e2e54f01083e94d7d42d1aac48171973cc33ae4d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page