Back to product page

Save method


Saves keys to the file.

Type

A String value

Syntax

  • Basic
object.Save KeyType, Filename, [Password]
The Save(object,KeyType,Filename,Password) syntax has these parts:
objectAn expression evaluating to an object of type Keys.
KeyTypeRequired. A SSHKeyTypes enumeration, as described in settings. Type of the key.
FilenameRequired. A String value. Full path to file where key should be saved.
PasswordOptional. A Variant value. Secret password to protect the key.

object.Save KeyType
The Save(object,KeyType) syntax has these parts:
objectAn expression evaluating to an object of type Keys.
KeyTypeRequired. A SSHKeyTypes enumeration, as described in settings. Type of the key.
Return valueA string value, contents of the key.

Remarks

Save method will store contents of your private key from memory to file on your disk drive.

Key is saved using Loading key from disk.

Written file contains only plain ASCII characters.

If you don't specify filename, Save will return an unencrypted string with private key so you can store/save it by yourself.

Platforms

Cross platform