Discuss this help topic in SecureBlackbox Forum


TElPEMProcessor     See also     

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

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


    bool PEMEncode(byte[] InBuffer, ref byte[] OutBuffer, bool Encrypt);

    Function PEMEncode(ByVal InBuffer As Byte(), ByRef OutBuffer As Byte(), ByVal Encrypt As Boolean) As Boolean

    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;

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

    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)

    boolean pemEncode(byte[] InBuffer, byte[] OutBuffer, boolean Encrypt);


  • 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.


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

See also:     PEMDecode     Header     Passphrase    

Discuss this help topic in SecureBlackbox Forum