Should I hide the difference between Not Found error and Access Denied error in my API?

I have a system that has different entities stored in the database with an integer Id as a primary key. There are different scenarios for queries that cannot be processed:

Get entity by id [Entity does not exist in the database]
Get entit… Continue reading Should I hide the difference between Not Found error and Access Denied error in my API?

Why do I keep getting this token error with the cryptography module in python?

Hello I am making a password manager and I keep getting this token error, this is my first time working with cryptography and working with sqlite in python, I am using the same key to encrypt and decrypt passwords. The user has the option … Continue reading Why do I keep getting this token error with the cryptography module in python?