Discuss this help topic in SecureBlackbox Forum

TElPEMProcessor.PEMEncode

TElPEMProcessor     See also     


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


Converts binary data to network-friendly (base64) representation.

Declaration

[C#/Java]
    bool PEMEncode(byte[] InBuffer, ref byte[] OutBuffer, bool Encrypt);

[VB.NET]
    Function PEMEncode(ByVal InBuffer As Byte(), ByRef OutBuffer As Byte(), ByVal Encrypt As Boolean) As Boolean

[Pascal]
    function PEMEncode(const InBuffer: ByteArray; var OutBuffer : ByteArray; Encrypt : boolean) : boolean;
    function PEMEncode(InBuffer : pointer; InSize : integer; OutBuffer : pointer; var OutSize : integer; Encrypt : boolean) : boolean;

[C++]
    bool PEMEncode(const std::vector<uint8_t> &InBuffer, std::vector<uint8_t> &OutBuffer, bool Encrypt);
    bool PEMEncode(void * InBuffer, int32_t InSize, void * OutBuffer, int32_t &OutSize, bool Encrypt);

[PHP]
    bool PEMEncode(array of byte|string|NULL $InBuffer, array of byte|string &$OutBuffer, bool $Encrypt)
    bool PEMEncode(TSBPointer|array of byte|string|NULL $InBuffer, integer $InSize, TSBPointer|array of byte|string|NULL $OutBuffer, integer &$OutSize, bool $Encrypt)

Parameters

  • InBuffer - Reference to the buffer with input data
  • InSize - Size of input data in bytes
  • OutBuffer - Reference to the buffer where output data should be stored
  • OutSize - Size of OutBuffer in bytes.
  • Encrypt - Specifies if data should be encrypted during encoding.

Return value

     True on success,
     False otherwise.

Description

    Use this method to convert binary data to network-friendly (base64) representation.

See also:     PEMDecode     Header     Passphrase    

Discuss this help topic in SecureBlackbox Forum