Discuss this help topic in SecureBlackbox Forum

TElPGPCustomSecretKey.ChangeProtection

TElPGPCustomSecretKey     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Changes protection level and/or secret key password.

Declaration

[C#/Java]
    void ChangeProtection(string NewPassphrase, TSBPGPProtectionType PrType, int EncAlgorithm /* = 3 */, int HshAlgorithm /* = 2 */);

[VB.NET]
    Sub ChangeProtection(ByVal NewPassphrase As String, ByVal PrType As TSBPGPProtectionType, ByVal EncAlgorithm As Integer = 3, ByVal HshAlgorithm As Integer = 2)

[Pascal]
    procedure ChangeProtection(const NewPassphrase : string; PrType : TSBPGPProtectionType; EncAlgorithm : integer = SB_PGP_ALGORITHM_SK_CAST5; HshAlgorithm : TSBPGPHashAlgorithm = SB_PGP_ALGORITHM_MD_SHA1);

[C++]
    void ChangeProtection(const std::string &NewPassphrase, TSBPGPProtectionType PrType, int32_t EncAlgorithm, int32_t HshAlgorithm);

[PHP]
    void ChangeProtection(string $NewPassphrase, integer $PrType, integer $EncAlgorithm, integer $HshAlgorithm)

Parameters

  • NewPassphrase - new password.
  • ProtectionType - type of the protection.
  • EncAlgorithm - encryption algorithm
  • HshAlgorithm - hash algorithm
  • PrType - ...

Protection type values


Encryption algorithm values


Hash algorithm values


Description

    Use this method to change protection type and/or key password.

See also:     Protection     ChangePassphrase    

Discuss this help topic in SecureBlackbox Forum