Let's take what we have learned and put it into technical terms:
To create a new user account, we first generate a public/private key pair. We then add the ability to login to the account by hashing the password and a salt with PBKDF2. This produces a proof of work that is used to encrypt and decrypt the private key with AES.
Once we have the private key, we can then read and write our own personal data using the private key as an AES encryption key. We can also have private conversations with others by sending them our public key padlock.
Finally, we can prove to others we said something by adding a digital signature to our published content, which the public key can then verify.
This covers some of the most advanced security possible. And is why GUN pushes the standard of true security. Covering all of your application's needs.