Inherits: Resource < Reference < Object

A cryptographic key (RSA).


The CryptoKey class represents a cryptographic key. Keys can be loaded and saved like any other Resource.

They can be used to generate a self-signed X509Certificate via Crypto.generate_self_signed_certificate and as private key in StreamPeerSSL.accept_stream along with the appropriate certificate.

Note: Not available in HTML5 exports.


Errorload ( String path )
Errorsave ( String path )

Method Descriptions

Loads a key from path (“*.key” file).

Saves a key to the given path (should be a “*.key” file).

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 2020-03-07 at 01:30:57. It's the English Stable version because it's what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.