| Extracted from Pike v7.8 release 866 at 2016-04-05.

[Top]
Crypto
Crypto.Buffer

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

Method pad

  `string pad(void|int method)`

Description

  Pad and encrypt any data left in the buffer.

Parameter `method`

  The type of padding to apply to the 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

  unpad()