Closed bentcoder closed 3 years ago
Hi @BentCoder, The example you've shared is preferable, since there's a better SoC (Separation of Concerns) between encryption and decryption.
Would you like to open a Pull Request with a refactored source code sample? I would love to review and accept it!
Cheers, Paulo A. Silva
Hi @PauloASilva I will do and ping you once ready. Thanks
Closing this as the update/implementation has been merged here: https://github.com/OWASP/Go-SCP/pull/78
Hi,
Thanks for this piece of work. The enc/dec example here requires the nonce to be known by both methods. Is there a way to avoid passing to
dec
method? Similar to this. See example below - same one from the doc but split intoenc
anddec
methods.Thanks