sodium_unpad

Remove padding data

Description

string sodium_unpad(#[\SensitiveParameter]string $string, int $block_size)

Unpad a padded string. Timing-safe.

Parameters

string

Padded string.

block_size

The block size for padding.

Return Values

Unpadded string.