IP*Works! OpenPGP V9 - Online Help
IP*Works! OpenPGP V9
Questions / Feedback?

KeyPassphrase Property

The passphrase for the key's secret key (if any).

Object Oriented Interface

public function getKeyPassphrase($keyindex);
public function setKeyPassphrase($keyindex, $value);

Procedural Interface

ipworksopenpgp_ppop_get($res, 15 , $keyindex);
ipworksopenpgp_ppop_set($res, 15, $value , $keyindex);

Default Value

''

Remarks

The passphrase for the key's secret key (if any). This must be specified before operations requiring the secret key are attempted. The passphrase may be supplied in this property or through the KeyPassphrase event, which will fire when a passphrase is required.

The passphrase is required when using the following methods in KeyMgr:

  • AddUserId
  • SignUserId
  • ChangeExpirationDate
  • ChangePassphrase

When using the OpenPGP class, or an email-based class, the following methods require a passphrase for the key:

  • Decrypt
  • Sign
  • SignAndEncrypt

The size of the array is controlled by the KeyCount property.

This property is not available at design time.

Data Type

String

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 9.0.6240.0