It's not that good of an idea to save passwords and other sensitive data as plain texts.
But cryptography is a difficult subject and a lot bigger than you might think. If you do something wrong, your whole encryption might become useless.
As someone who studied encryption at university as part of my masters degree, I feel confident to use the provided tools correctly.
The SwiftGUI_Encryption-package is basically how I would encrypt data. I let you use my encryption-schemes, so you won't have to dive deep into cryptography.
Also, this package can be used as an addon for SwiftGUI, but doesn't have to be.
Open your terminal and execute this:
pip install SwiftGUI_EncryptionFind the tutorial in this repository:
https://github.com/CheesecakeTV/SwiftGUI-Encryption/tree/main/docs/tutorial
There already is a tutorial about the most important features.
I also wrote a short introduction to cryptography, so you actually know what you are doing when using this package.
This package wouldn't be possible without the following open-source packages:
PyCryptoDome: A Python-package featuring a lot of cryptography algorithmsargon2pure: A small package implementing the argon2-key-derivation algorithm