New hash functions — sha1(), md5(), and sha512()
changelog / Other / Rules / 2026/11/12 09:00 JST
要約
Cloudflare Rulesにハッシュ関数 sha1()・md5()・sha512() が追加。既存の sha256() と同様に文字列やバイト列を受け取り、生バイト列を返す。これらのアルゴリズムを要求するシステムとの連携に使える。
Cloudflare Rules supports three new hash functions: sha1() , md5() , and sha512() . Use them to compute hashes for systems that require these algorithms. Like the existing sha256() function, each accepts a string or byte array and returns raw bytes: Function Algorithm Output length md5() MD5 16 bytes sha1() SHA-1 20 bytes sha512() SHA-512 64 bytes For example, combine sha512() with encode_base64() to produce a Base64-encoded hash: encode_base64(sha512(“hello world”)) For details, refer to the sha1() , md5() , and sha512() function references.
出典: 公式ページ