How can I improve the application administrator’s encryption keys security inside database

I am interested in the issue of establishing the security of data of users of a web application in the event of a database leak.
It was decided to use the following encryption chain:

User data is encrypted with a user symmetric key (AES)
Continue reading How can I improve the application administrator’s encryption keys security inside database

Is it insecure to encrypt a message with a key thats almost the same as the message

I am using a syymetric token, a fernet from the python cryptography module. I am trying to make it such that a terminal logs into a website automatically.
I store the serial number and mac address of the terminal.
The terminal authenticate… Continue reading Is it insecure to encrypt a message with a key thats almost the same as the message