Back to product page

PublicKey property


Returns public key.

Type

A String value.

Syntax

  • Basic
object.PublicKey(KeyType)
The PublicKey(object,KeyType) syntax has these parts:
objectAn expression evaluating to an object of type SSHKeyPair.
KeyTypeRequired. A SSHKeyTypes enumeration, as described in settings. Type of the key (RSA, DSA or ECDSA).

Remarks

The settings for KeyType are:

Constant Value Description
RSAkey0 Uses RSA cipher to create keys.
DSAkey 1 Uses DSA cipher to create keys.
ECDSAkey 2 Uses ECDSA cipher to create keys.

This property will return raw data for public part of previously generated (or loaded) key.


Platforms

Windows