5-python-projects-for-beginners's Issues
fernet value error
Traceback (most recent call last):
File "C:\Users"username"\PycharmProjects\FreeCodeCamp\mini projects\git_PW_manager.py", line 18, in
fer = Fernet(code)
File "C:\Users"username\PycharmProjects\FreeCodeCamp\venv\lib\site-packages\cryptography\fernet.py", line 39, in init
raise ValueError(
ValueError: Fernet key must be 32 url-safe base64-encoded bytes.
line 18 in PW manager: fer = Fernet(key)
line 39 in fernet: raise ValueError(
"Fernet key must be 32 url-safe base64-encoded bytes."
)
I am using Pycharm
Errors on project
here's the problem:
Traceback (most recent call last):
File "c:\Users\catdo\Desktop\Jayden\Apps\Python\VS Code Files\Password Manager\passwords_manager.py", line 17, in
key = load_key()
File "c:\Users\catdo\Desktop\Jayden\Apps\Python\VS Code Files\Password Manager\passwords_manager.py", line 11, in load_key
file = open("key.key", "rb")
Hope you can help me with this!
Error in Password Manager
Traceback (most recent call last):
File "e:\Python\Password manager\password-manager.py", line 18, in
fer = Fernet(key)
^^^^^^^^^^^
File "C:\Users\proto\AppData\Local\Programs\Python\Python311\Lib\site-packages\cryptography\fernet.py", line 39, in init
raise ValueError(
ValueError: Fernet key must be 32 url-safe base64-encoded bytes.
PS E:\Python\Password manager>
Anybody knows a fix ?
Project python
Number Guesses - does not print "type a number larger than 0"
when I type a number that is < 0,
it prints "please choose a number next time"
instead of
"please choose a number larger than zero"
Calculator
How can I get the project pls , im a complete beginner, I need a small project for Python automation
Bug with Password Manager
rock paper scissors
this game is unfair.
if user_input == computer_pick should be a draw.
ValueError in Password Manager
For people experiencing this issue, replace the below mentioned block of code with this:
def view():
with open('passwords.txt', 'r') as f:
for line in f.readlines():
if line == "\n":
continue
else:
data = line.rstrip()
user, passw = data.split("|")
print("User:", user, "| Password:",
fer.decrypt(passw.encode()).decode())
All this does is, skips a new line/empty line if it exists, in your passwords.txt file.
Password Manager error
binascii.Error: Incorrect padding
While running the code I got the above error.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.