import pathlib current = pathlib.Path(__file__).parent root = current.parent import sys sys.path.append(str(root)) import assets crypter = assets.secret_coder("password") test_1 = crypter.encrypt("UwU") print("UwU crypted: " + test_1) print("\"" + test_1 + "\" decrypted: " + crypter.decrypt(test_1)) print("") print("New crypted creating...") crypter = assets.secret_coder("password") print("\"" + test_1 + "\" decrypted: " + crypter.decrypt(test_1)) print("") print("Testing with bad password...") crypter = assets.secret_coder("password 2") try: crypter.decrypt(test_1) print("Exception for bad password not working.") except assets.bad_password: print("Exception for bad password working.")