class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResource CryptoKey
A cryptographic key (RSA or elliptic-curve).

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 StreamPeerTLS.accept_stream() along with the appropriate certificate.

bool is_public_only<>():bool

Returns true if this CryptoKey only has the public part, and not the private one.

Error load<>( String path=, path:String=, bool public_only=false, public_only:bool=false, ):Error

Loads a key from path. If public_only is true, only the public key will be loaded.

Note: path should be a "*.pub" file if public_only is true, a "*.key" file otherwise.

Error load_from_string<>( String string_key=, string_key:String=, bool public_only=false, public_only:bool=false, ):Error

Loads a key from the given string_key. If public_only is true, only the public key will be loaded.

Error save<>( String path=, path:String=, bool public_only=false, public_only:bool=false, ):Error

Saves a key to the given path. If public_only is true, only the public key will be saved.

Note: path should be a "*.pub" file if public_only is true, a "*.key" file otherwise.

String save_to_string<>( bool public_only=false, public_only:bool=false, ):String

Returns a string containing the key in PEM format. If public_only is true, only the public key will be included.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...