« sodium_pad
SodiumException »

sodium_unpad

(PHP 7 >= 7.2.0, PHP 8)

sodium_unpad — パディングを削除する

説明

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

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

パラメータ

string

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

block_size

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

戻り値

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

関連キーワード:
パディング   sodium   unpad   block   size   SodiumException   Sodium   SensitiveParameter   タイミング   攻撃   安全   ブロック
関連する関数・ページ:
function.sodium-pad   openssl.constants.other   mysql-xdevapi-columnresult.ispadded   function.sodium-bin2base64   function.sodium-base642bin   function.sodium-compare