Discuss this help topic in SecureBlackbox Forum

TElPGPCustomSecretKey.ChangeProtection

TElPGPCustomSecretKey     See also     


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


Changes protection level and/or secret key password.

Declaration

[C#]
    void ChangeProtection(string NewPassphrase, TSBPGPProtectionType PrType, int EncAlgorithm, int HshAlgorithm);

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

[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)

[Java]
    void changeProtection(String NewPassphrase, TSBPGPProtectionType PrType, int EncAlgorithm, int 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