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

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


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