PHP 8.4.0 RC3 available for testing

sodium_base642bin

(PHP 7 >= 7.2.0, PHP 8)

sodium_base642binbase64 エンコードされた文字列を、生バイナリにデコードする

説明

sodium_base642bin(#[\SensitiveParameter] string $string, int $id, string $ignore = ""): string

base64 エンコードされた文字列を、 生バイナリにデコードします。 base64_decode() と異なり、 sodium_base642bin() は定数時間 (この性質は、プレーンテキストや鍵のような、 暗号に関する入力に触れるあらゆるコードで重要です) で実行でき、複数のエンコード方式をサポートしています。

パラメータ

string

エンコードされた文字列。

id

ignore

デコードする際に無視する文字(e.g. 空白文字)

戻り値

デコードされた文字列を返します。

add a note

User Contributed Notes

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