overte icon indicating copy to clipboard operation
overte copied to clipboard

Crypto(graphy) implementation for the scripting interface

Open Armored-Dragon opened this issue 1 year ago • 2 comments

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

Armored-Dragon avatar Mar 19 '24 05:03 Armored-Dragon

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.

ksuprynowicz avatar Mar 20 '24 22:03 ksuprynowicz

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.

Armored-Dragon avatar May 21 '24 02:05 Armored-Dragon