Open Armored-Dragon opened 3 months ago
It's a really good idea, and we are already dependent on libSSL, so we would just need to expose relevant functions to script engine most probably. Since that API is pretty big htough, maybe it would be best to implement a subset of it at first and then extend as needed? I will be happy to offer advice on how to do this.
There is an example implimentation of crypto "generateuuid()" in the branch feature/cryptography. It should hopefully be easy to study and extend to the rest of the crypto library.
It would be nice to have crypto functionality available to scripts so we are not reliant on third party libs. From what I can find, and from my testing, I don't think this functionality is exposed to scripts, or if it has an implementation in what Overte uses to execute scripts.
Node.JS example: https://nodejs.org/api/crypto.html