RSA signing and verification methods in `core`
Author: red-001Created Aug 26, 2026Updated Sep 30, 2026
LabelsFeature requestPossible close
Problem
Related to #17058, would need a way to verify and sign RSA signatures most likely, perhaps could be something only supported by the engine if it's compiled with an SSL backend, it's more of a server-only feature
Solutions
Two new core functions:
core.rsa_sha256_sign(...) and core.rsa_sha256_verify(...) using RSASSA-PKCS1-v1_5 with SHA256 per rfc7518
https://www.rfc-editor.org/info/rfc7518/#appendix-A.2
Alternatives
Do this externally to the engine itself perhaps, or only support HS256 which is technically enough for JWT support.
Additional context
Use for implementing support for various third party logins, not so useful on it's own or for player transfer by token where HS256 might work better.
Source: luanti-org/luanti