static static_in = "数据" position = 0% width = 100% height = 1
crlf
edit input filename = "hash_data" position = 0% width = 100% height = 3
crlf
static static_out = "结果" position = 0% width = 100% height = 1
crlf
edit output filename = "hash_result" position = 0% width = 100% height = 3
crlf
crlf
button sha1_hash = "sha1_hash" position = 0% width = 45% height = 1
crlf
button sha256_hash = "sha256_hash" position = 0% width = 45% height = 1
crlf
button sha384_hash = "sha384_hash" position = 0% width = 45% height = 1
crlf
button sha512_hash = "sha512_hash" position = 0% width = 45% height = 1
crlf
button md5_hash = "md5_hash" position = 0% width = 45% height = 1
crlf
function sha1_hash
output = sha1_hash( $input )
end function
function sha256_hash
output = sha256_hash( $input )
end function
function sha384_hash
output = sha384_hash( $input )
end function
function sha512_hash
output = sha512_hash( $input )
end function
function md5_hash
output = md5_hash( $input )
end function
//sha1_hash ( )
//--sha1_hash
//-- input =
//-- output = DA 39 A3 EE 5E 6B 4B 0D 32 55 BF EF 95 60 18 90 AF D8 07 09
//
//sha256_hash ( )
//--sha256 hash
//-- input =
//-- output = E3 B0 C4 42 98 FC 1C 14 9A FB F4 C8 99 6F B9 24 27 AE 41 E4 64 9B 93 4C A4 95 99 1B 78 52 B8 55
//
//sha384_hash ( )
//--sha384 hash
//-- input =
//-- output = 38 B0 60 A7 51 AC 96 38 4C D9 32 7E B1 B1 E3 6A 21 FD B7 11 14 BE 07 43 4C 0C C7 BF 63 F6 E1 DA 27 4E DE BF E7 6F 65 FB D5 1A D2 F1 48 98 B9 5B
//
//sha512_hash ( )
//--sha512 hash
//-- input =
//-- output = CF 83 E1 35 7E EF B8 BD F1 54 28 50 D6 6D 80 07 D6 20 E4 05 0B 57 15 DC 83 F4 A9 21 D3 6C E9 CE 47 D0 D1 3C 5D 85 F2 B0 FF 83 18 D2 87 7E EC 2F 63 B9 31 BD 47 41 7A 81 A5 38 32 7A F9 27 DA 3E
//
//md5_hash ( )
//--md5 hash
//-- input =
//-- output = D4 1D 8C D9 8F 00 B2 04 E9 80 09 98 EC F8 42 7E
//