| Extracted from Pike v7.8 release 866 at 2018-07-18.

[Top]
Crypto
Crypto.Buffer

# Method Crypto.Buffer()->unpad()

Method unpad

  `string unpad(string data, void|int method)`

Description

  Decrypt and unpad a block of data.

  This performs the reverse operation of pad() .

Parameter `method`

  The type of padding that was applied to the original buffer.

  `Crypto.PAD_SSL`
  `Crypto.PAD_ISO_10126`
  `Crypto.PAD_ANSI_X923`
  `Crypto.PAD_PKCS7`
  `Crypto.PAD_ZERO`

  Defaults to Crypto.PAD_SSL for compatibility reasons.

See also

  pad()