Difference between revisions of "LlHMAC/ja"

From Second Life Wiki
Jump to navigation Jump to search
(copy from english(Todo: need translate to japanese))
 
m
Line 1: Line 1:
{{LSL_Function
{{LSL_Function/ja
|func_id=|func_sleep=0.0|func_energy=10.0
|func_id=|func_sleep=0.0|func_energy=10.0
|sort=HMAC
|sort=HMAC
Line 35: Line 35:
|helpers
|helpers
|also_functions=
|also_functions=
{{LSL DefineRow||[[llSignRSA]]}}
{{LSL DefineRow||[[llSignRSA/ja]]}}
{{LSL DefineRow||[[llVerifyRSA]]}}
{{LSL DefineRow||[[llVerifyRSA/ja]]}}
{{LSL DefineRow||[[llSHA1String]]}}
{{LSL DefineRow||[[llSHA1String/ja]]}}
{{LSL DefineRow||[[llSHA256String]]}}
{{LSL DefineRow||[[llSHA256String/ja]]}}
{{LSL DefineRow||[[llMD5String]]}}
{{LSL DefineRow||[[llMD5String/ja]]}}
|also_events
|also_events
|also_articles=
|also_articles=

Revision as of 13:16, 2 November 2023

要約

関数: string llHMAC( string private_key, string msg, string algorithm );

that is the "Wikipedia logo"Base64-encoded "Wikipedia logo"HMAC hash of msg when using hash algorithm algorithm and secret key private_key.を string で返します。

• string private_key
• string msg
• string algorithm

This function supports md5, sha1, sha224, sha256, sha384, sha512 for algorithm.

サンプル

default
{
    state_entry()
    {
        string private_key = "secret key";
        
        // Supported algorithims for llHMAC() include:
        // md5, sha1, sha224, sha256, sha384, sha512
        
        string algorithm = "sha1";
        string msg = "Hello, Avatar!";
        
        string digest = llHMAC(private_key, msg, algorithm);
        
        // For the given private_key/msg/algorithm, expect the HMAC
        // digest to be 'ffCDntkagRO5mIEtd2tYzM2Bg8I='
        llSay(0, "HMAC digest of message '" + msg + "' using algorithm "
            +  algorithm + " is " + digest);
    }
}

関連項目

特記事項

Search JIRA for related Issues

Signature

function string llHMAC( string private_key, string msg, string algorithm );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。