PHP 8.3.4 Released!

sodium_unpad

(PHP 7 >= 7.2.0, PHP 8)

sodium_unpadパディングを削除する

説明

sodium_unpad(string $string, int $block_size): string

パディングされた文字列から、パディングを削除します。 タイミング攻撃に対しても安全です。

パラメータ

string

パディングされた文字列。

block_size

パディングのブロックサイズ

戻り値

パディングが削除された文字列を返します。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top