Module: crypto/pkcs5

Functions to add and remove PKCS5 padding

Source:
See:

Methods

(inner) decode(msg) → {String}

Remove pkcs5 padding from a string.

Parameters:
Name Type Description
msg String

Text to remove padding from

Source:
Returns:

Text with padding removed

Type
String

(inner) encode(msg) → {String}

Add pkcs5 padding to a text.

Parameters:
Name Type Description
msg String

Text to add padding

Source:
Returns:

Text with padding added

Type
String