Results of 1 - 10 of about 254 for Hash (0.003 sec.)
- Quickhash | PHP 8.3 7612
- Quickhash はじめに The quickhash extension contains a set of specific strongly-typed classes to deal with specific set and hash implementations. インストール/設定 要件 インストール手順 例 QuickHashIntSet — The QuickHashIntSet class QuickHash
... hIntSet::add — This method adds a new entry to the set QuickHashIntSet::__construct — Creates a new QuickHashIntSet object QuickHashIntSet::delete — This method deletes an entry from the ... set QuickHashIntSet::exists — This method checks whether a key is part of the set QuickHashIntSet::getSize — Returns the number of eleme ... nts in the set QuickHashIntSet::loadFromFile — This factory method creates a set from a file QuickHashIntSet::loadFromString — This factory method ...
-
https://man.mtool.work/php/8.3/book.quickhash.html
- 例 | PHP 8.3 7223
- 例 例1 Quickhash Example <?php $set = new QuickHashIntSet ( 1024 , QuickHashIntSet :: CHECK_FOR_DUPES ); $set -> add ( 1 ); $set -> add ( 3 ); var_dump ( $set -> exists ( 3 ) ); var_dump ( $set -> exists ( 4 ) ); $set -> saveToFile ( "/tmp/
... test-set.set" ); $newSet = QuickHashIntSet :: loadFromFile ( "/tmp/test-set.set" ); var_dump ( $newSet -> exists ( 3 ) ); var_dump ( $newSet -> exists ( 4 ) ); ... ?> 上の例の出力は、 たとえば以下のようになります。 bool(true) bool(false) bool(true) bool(false) 例2 Quickhash ArrayAccess Example <?php $hash = new QuickHashIntHash ( 64 ); // Adding and updating hash entries. $hash [ 3 ] = 145926 ; ... $hash [ 3 ] = 1415926 ; $hash [ 2 ] = 72 ; // Checking if keys exist var_dump ( isset( $hash [ 3 ] ) ); // Removing hash entries ...
-
https://man.mtool.work/php/8.3/quickhash.examples.html
- QuickHashIntHash::add — This method adds a new entry to the hash | PHP 8.3 7114
- QuickHashIntHash::add (PECL quickhash >= Unknown) QuickHashIntHash::add — This method adds a new entry to the hash 説明 public function QuickHashIntHash::add ( int $key , int $value = ? ): bool This method adds a new entry to the hash, and
... returns whether the entry was added. Entries are by default always added unless QuickHashIntHash::CHECK_FOR_DUPES has been passed when the hash was created. パラメータ key The key of the entry to add. value The o ... alue is specified, 1 will be used. 戻り値 true when the entry was added, and false if the entry was not added. 例 例1 QuickHashIntHash::add() example <?php echo "without dupe checking\n" ; $hash = new QuickHashIntHash ( 1024 ); var_dump ( $hash -> ex ... ists ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); var_dump ( $hash -> add ( 4 , 22 ) ); var_dump ( $hash -> exists ( 4 ) ); var_dump ( $hash -> get ( 4 ) ); ...
-
https://man.mtool.work/php/8.3/quickhashinthash.add.html
- QuickHashStringIntHash::add — This method adds a new entry to the hash | PHP 8.... 7114
- QuickHashStringIntHash::add (No version information available, might only be in Git) QuickHashStringIntHash::add — This method adds a new entry to the hash 説明 public function QuickHashStringIntHash::add ( string $key , int $value ): bool
... This method adds a new entry to the hash, and returns whether the entry was added. Entries are by default always added unless QuickHashStringIntHash::CHECK_FOR_DUP ... ES has been passed when the hash was created. パラメータ key The key of the entry to add. value The value of the entry to add. 戻り値 true when the entry w ... as added, and false if the entry was not added. 例 例1 QuickHashStringIntHash::add() example <?php echo "without dupe checking\n" ; $hash = new QuickHashStringIntHash ( 1024 ); var_dump ( ...
-
https://man.mtool.work/php/8.3/quickhashstringinthash.add.html
- hash_init — 段階的なハッシュコンテキストを初期化する | PHP 8.3 7094
- hash_init (PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL hash >= 1.1) hash_init — 段階的なハッシュコンテキストを初期化する 説明 function hash_init ( string $algo , int $flags = 0 , #[ \SensitiveParameter ] string $key = "" , array $options = [] ): Hash
... hContext パラメータ algo 選択したアルゴリズムの名前 (例: "sha256" )。 サポートされているアルゴリズムの一覧については、 hash_algos() を参照ください。 注意 : HASH_HMAC フラグが指定されている場合、 暗号に適さないハッシュ関数は許可されません。 flags ... ハッシュ生成の際に使用するオプションで、現在は、ただひとつ HASH_HMAC のみをサポートしています。これが 指定された場合、 key を 必ず 指定しなければなりません。 key flags に HASH_HMAC が指定 ... 使用される共有の秘密鍵を 設定する必要があります。 options 様々なハッシュアルゴリズム向けの、オプションの配列。 現状は、MurmurHash バリアントが "seed" だけをサポートしています。 戻り値 hash_update() 、 hash_update_stream() 、 hash_update_file() および h ...
-
https://man.mtool.work/php/8.3/function.hash-init.html
- QuickHashIntStringHash::add — This method adds a new entry to the hash | PHP 8.... 7034
- QuickHashIntStringHash::add (PECL quickhash >= Unknown) QuickHashIntStringHash::add — This method adds a new entry to the hash 説明 public function QuickHashIntStringHash::add ( int $key , string $value ): bool This method adds a new entry
... to the hash, and returns whether the entry was added. Entries are by default always added unless QuickHashIntStringHash::CHECK_FOR_DUP ... ES has been passed when the hash was created. パラメータ key The key of the entry to add. value The value of the entry to add. If a non-string is passed, i ... string automatically if possible. 戻り値 true when the entry was added, and false if the entry was not added. 例 例1 QuickHashIntStringHash::add() example <?php echo "without dupe checking\n" ; $hash = new QuickHashIntStringHash ( 1024 ); var_dump ( ...
-
https://man.mtool.work/php/8.3/quickhashintstringhash.add.html
- Hash 関数 | PHP 8.3 7034
- Hash 関数 目次 hash — ハッシュ値 (メッセージダイジェスト) を生成する hash_algos — 登録されているハッシュアルゴリズムの一覧を返す hash_copy — ハッシュコンテキストをコピーする hash_equals — タイミング攻撃に対しても安全な文字列比較 hash_file —
... ファイルの内容から、ハッシュ値を生成する hash_final — 段階的なハッシュ処理を終了し、出来上がったダイジェストを返す hash_hkdf — 与えられたキーから導出されるHKDFキーを生成 ... する hash_hmac — HMAC 方式を使用してハッシュ値を生成する hash_hmac_algos — hash_hmac に合うハッシュアルゴリズムの一覧を返す hash_hma ... c_file — HMAC 方式を使用して、指定されたファイルの内容からハッシュ値を生成する hash_init — 段階的なハッシュコンテキストを初期化する hash_pbkdf2 — PBKDF2 を使ってパスワードからキーを生成する hash_update — ア ...
-
https://man.mtool.work/php/8.3/ref.hash.html
- Ds\Hashable::hash — Returns a scalar value to be used as a hash value | PHP 8.3 7014
- Ds\Hashable::hash (PECL ds >= 1.0.0) Ds\Hashable::hash — Returns a scalar value to be used as a hash value 説明 abstract public function Ds\Hashable::hash (): mixed Returns a scalar value to be used as the hash value of the objects. While t
... he hash value does not define equality, all objects that are equal according to Ds\Hashable::equals() must have the same hash valu ... e. Hash values of equal objects don't have to be unique, for example you could just return true for all objects and nothing would ... break - the only implication would be that hash tables then turn into linked lists because all your objects will be hashed to the same bucket. It's therefore very importa ...
-
https://man.mtool.work/php/8.3/ds-hashable.hash.html
- ssdeep_fuzzy_hash — Create a fuzzy hash from a string | PHP 8.3 7014
- ssdeep_fuzzy_hash (PECL ssdeep >= 1.0.0) ssdeep_fuzzy_hash — Create a fuzzy hash from a string 説明 function ssdeep_fuzzy_hash ( string $to_hash ): string ssdeep_fuzzy_hash() calculates the hash of to_hash using » context-triggered piecewis
... e hashing , and returns that hash. パラメータ to_hash The input string. 戻り値 Returns a string on success, false otherwise. 他の ... マニュアルの関連ページ Linux JM hash(3) Django 2.1.2 Python hash ...
-
https://man.mtool.work/php/8.3/function.ssdeep-fuzzy-hash.html
- QuickHashStringIntHash::delete — This method deletes an entry from the hash | P... 6844
- QuickHashStringIntHash::delete (No version information available, might only be in Git) QuickHashStringIntHash::delete — This method deletes an entry from the hash 説明 public function QuickHashStringIntHash::delete ( string $key ): bool Th
... is method deletes an entry from the hash, and returns whether the entry was deleted or not. Associated memory structures will not be freed immediately, but rather ... when the hash itself is freed. Elements can not be deleted when the hash is used in an iterator. The method will not throw an exception, ... he key of the entry to delete. 戻り値 true when the entry was deleted, and false if the entry was not deleted. 例 例1 QuickHashStringIntHash::delete() example <?php $hash = new QuickHashStringIntHash ( 1024 ); var_dump ( $hash -> exists ( 'four' ) ); ...
-
https://man.mtool.work/php/8.3/quickhashstringinthash.delete.html