hash_sha256

SHA-256 ハッシュ

hash_sha256 "text"

(プラグイン / モジュール : iron_hash.hsp)

解説

refstr に hex (64 文字) を返します。

例:
  hash_sha256 "hello world"
  mes refstr
  ; → b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9

サンプル逆引き (1)

sample_hash.hsp

情報

プラグイン / モジュールiron_hash.hsp
バージョン1.0
作成日2026-04-13
著作者IronHSP / iron_hash
URLhttps://github.com/inovia/IronHSP
備考iron_hash.hsp は Win32 BCrypt (CNG) と CryptStringToBinary /
CryptBinaryToString を使った 1 行 ハッシュ + Base64 ラッパです。

#include "iron_hash.hsp"

サポート:
MD5, SHA-1, SHA-256, SHA-384, SHA-512
Base64 encode / decode
タイプ拡張命令
グループiron_hash ― ハッシュ
対応環境
  • その他 : Win32 / Win64
hs ファイルhsphelp\iron_hash.hs