CryptoKey

Inherits: Resource < Reference < Object

A cryptographic key (RSA).

Description

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.

Methods

Error load ( String path )
Error save ( String path )

Method Descriptions

Error load ( String path )

Loads a key from path ("*.key" file).

Error save ( String path )

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

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_cryptokey.html