PHP 8.4.6 Released!

sodium_bin2hex

(PHP 7 >= 7.2.0, PHP 8)

sodium_bin2hex16進数にエンコードする

説明

sodium_bin2hex(#[\SensitiveParameter] string $string): string

生バイナリ文字列を16進文字列にエンコードします。 標準の16進文字列にエンコードする関数と異なり、 sodium_bin2hex() は定数時間 (この性質は、プレーンテキストや鍵のような、 暗号に関する入力に触れるあらゆるコードで重要です) で実行できます。

パラメータ

string

生のバイナリ文字列。

戻り値

16進数にエンコードされた文字列を返します。

add a note

User Contributed Notes

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant