So, I have about fifteen years of web development experience mainly with classic ASP. Interestingly I never had a client who required any type of encryption other than some very low-level username/password logins for administrative backends.
What I am working on, as a pet project for my friends and family, is a private/direct messaging system that I will write with Go. To be clear, this is not a messaging service like WhatsApp nor Signal. It will be similar to the private/direct messaging that you see here at Tildes or Reddit.
It is important to my friends and family that messages we write to each other be private and secure.
Thus, how would I go about encrypting the messages so that if someone were to get into the server and acquire the database, they wouldn’t be able to read them?
EDIT: At some point I will make the code available through GitLab.