overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
130 stars 47 forks source link

Crypto(graphy) implementation for the scripting interface #881

Open Armored-Dragon opened 3 months ago

Armored-Dragon commented 3 months ago

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

ksuprynowicz commented 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.

Armored-Dragon commented 1 month ago

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.