Nice script for an important topic. I'm not sure if the signature should be prefixed to the encrypted message, but it's anyway great for a start in DIY enc. Kudos
Friends, encryption is vital. I've created a DIY intro on hubstr.org. Reviews very very welcome 😁 https://hubstr.org/articles/how-to-encryption.html
Discussion
Thanks nostr:nprofile1qqsvgl5jmka5tu6llrvzrsmlmus3adt308q6xemqhrfx8rn0t3thsucpzpmhxue69uhkummnw3ezumt0d5hsxha766 - I'm sure there are a lot of more sophisticated ways to sign - but it's for beginners 😃