LlBase64ToString/ja

From Second Life Wiki
< LlBase64ToString
Revision as of 07:33, 10 April 2010 by Mako Nozaki (talk | contribs) (カテゴリ変更)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

要約

関数: string llBase64ToString( string str );

Base64暗号化 形式の str を元の平文へデコードした文字列を string で返します。

• string str Base64 形式の文字列

警告

  • 平文に印字不能の文字があった場合、それらはスペース (' ') に変換されます。
  • 不正な文字があった場合、それらは疑問符 ('?') に変換されます。
All Issues ~ Search JIRA for related Bugs

サンプル

<lsl>default {

   state_entry()
   {
       string test = llBase64ToString("U2VjcmV0Ok9wZW4=");
       llSay(0,test );
   }

}</lsl>

これは"Wikipedia logo"Basic認証で使えます。例えば以下のようなログイン処理が挙げられます:

GET / HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2)
Host: www.example.com
Authorization: Basic U2VjcmV0Ok9wZW4= 
<lsl>llBase64ToString("U2VjcmV0Ok9wZW4="); // "Secret:Open" という文字列を返します</lsl>

関連項目

関数

•  llStringToBase64
•  llBase64ToInteger

記事

•  Base64暗号化

特記事項

Search JIRA for related Issues

Signature

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