cvs: peardoc /ja/package/encryption crypt-chap.xml /ja/package/encryption/crypt-chap generate-challenge.xml intro.xml
/ja/package/encryption/crypt-chap/crypt-chap-md5 challenge-response.xml crypt-chap-md5.xml /ja/package/encryption/crypt-chap/crypt-chap-mschapv1
challenge-response.xml crypt-chap-mschapv1.xml lm-challenge-response.xml lm-password-hash.xml nt-challenge-response.xml nt-password-hash.xml
response.xml str2unicode.xml /ja/package/encryption/crypt-chap/crypt-chap-mschapv2 challenge-hash.xml crypt-chap-mschapv2.xml
nt-password-hash-hash.xml

From: Date: Sun, 19 Nov 2006 06:07:22 +0000
Subject: cvs: peardoc /ja/package/encryption crypt-chap.xml /ja/package/encryption/crypt-chap generate-challenge.xml intro.xml
/ja/package/encryption/crypt-chap/crypt-chap-md5 challenge-response.xml crypt-chap-md5.xml /ja/package/encryption/crypt-chap/crypt-chap-mschapv1
challenge-response.xml crypt-chap-mschapv1.xml lm-challenge-response.xml lm-password-hash.xml nt-challenge-response.xml nt-password-hash.xml
response.xml str2unicode.xml /ja/package/encryption/crypt-chap/crypt-chap-mschapv2 challenge-hash.xml crypt-chap-mschapv2.xml
nt-password-hash-hash.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-8829@lists.php.net to get a copy of this message
takagi Sun Nov 19 06:07:22 2006 UTC Added files: /peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv2 nt-password-hash-hash.xml crypt-chap-mschapv2.xml challenge-hash.xml /peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1 str2unicode.xml response.xml nt-password-hash.xml nt-challenge-response.xml lm-password-hash.xml lm-challenge-response.xml crypt-chap-mschapv1.xml challenge-response.xml /peardoc/ja/package/encryption/crypt-chap/crypt-chap-md5 crypt-chap-md5.xml challenge-response.xml /peardoc/ja/package/encryption/crypt-chap intro.xml generate-challenge.xml /peardoc/ja/package/encryption crypt-chap.xml Log: initial translation.

http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv2/nt-password-hash-hash.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv2/nt-password-hash-hash.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv2/nt-password-hash-hash.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-mschapv2.ntpasswordhashhash"> <refnamediv> <refname>Crypt_CHAP_MSCHAPv2::ntPasswordHashHash()</refname> <refpurpose>NT ハッシュをもとにして MD4 ハッシュを作成する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>string <function>Crypt_CHAP_MSCHAPv2::ntPasswordHashHash</function></funcdef> <paramdef>string <parameter>$nthash</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv2.ntpasswordhashhash.desc"> &title.desc; <para> このメソッドは、指定した NT ハッシュから MD4 ハッシュを作成します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv2.ntpasswordhashhash.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $nthash</parameter> - ハッシュの対象となる NT ハッシュ。 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv2.ntpasswordhashhash.return"> &title.returns; <para> <parameter>string</parameter> - NT ハッシュを文字列で返します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv2.ntpasswordhashhash.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv2.ntpasswordhashhash.example"> &title.example; <example> <title><function>Crypt_CHAP_MSCHAPv2::ntPasswordHashHash</function> の使用</title> <programlisting role="php"> <![CDATA[ <?php require_once 'Crypt/CHAP.php'; $cr = new Crypt_CHAP_MSCHAPv2(); $nthash = $cr->ntPasswordHash('MyPw'); echo bin2hex($cr->ntPasswordHashHash($nthash)); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv2/crypt-chap-mschapv2.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv2/crypt-chap-mschapv2.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv2/crypt-chap-mschapv2.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-mschapv2"> <refnamediv> <refname>Crypt_CHAP_MSCHAPv2::Crypt_CHAP_MSCHAPv2()</refname> <refpurpose>コンストラクタ</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Crypt/CHAP.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>Crypt_CHAP_MSCHAPv2::Crypt_CHAP_MSCHAPv2</function></funcdef> <paramdef> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv2.desc"> &title.desc; <para> MS-CHAPv2 に準拠したパケットを作成するための新しいオブジェクトを生成します。 このバージョンの CHAP は Peer-Challenge を使用し、LM ハッシュは使用されません。 このコンストラクタは、自動的に Peer-Challenge と Authenticator-Challenge を作成します。 </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv2/challenge-hash.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv2/challenge-hash.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv2/challenge-hash.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-mschapv2.challengehash"> <refnamediv> <refname>Crypt_CHAP_MSCHAPv2::challengeHash()</refname> <refpurpose>チャレンジ-ハッシュを作成する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>string <function>Crypt_CHAP_MSCHAPv2::challengeHash</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv2.challengehash.desc"> &title.desc; <para> このメソッドは、(SHA1) チャレンジ-ハッシュを作成します。 このハッシュには、認証符号やピアチャレンジ、そしてユーザ名が含まれます。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv2.challengehash.return"> &title.returns; <para> <parameter>string</parameter> - チャレンジ-ハッシュを文字列で返します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv2.challengehash.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv2.challengehash.example"> &title.example; <example> <title><function>Crypt_CHAP_MSCHAPv2::challengeHash</function> の使用</title> <programlisting role="php"> <![CDATA[ <?php require_once 'Crypt/CHAP.php'; $cr = new Crypt_CHAP_MSCHAPv2(); $cr->username = 'billy'; $cr->peerChallenge = $peerChallenge; $cr->authChallenge = $authChallenge; echo bin2hex($cr->challengeHash()); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/str2unicode.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/str2unicode.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/str2unicode.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-mschapv1.str2unicode"> <refnamediv> <refname>Crypt_CHAP_MSCHAPv1::str2unicode()</refname> <refpurpose>文字列を unicode に変換する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>string <function>Crypt_CHAP_MSCHAPv1::str2unicode</function></funcdef> <paramdef>string <parameter>$str</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.str2unicode.desc"> &title.desc; <para> このメソッドは、指定した文字列を unicode に変換します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.str2unicode.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $str</parameter> - unicode 化する文字列。 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.str2unicode.return"> &title.returns; <para> <parameter>string</parameter> - 指定した文字列を unicode 変換したものを返します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.str2unicode.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.str2unicode.example"> &title.example; <example> <title><function>Crypt_CHAP_MSCHAPv1::str2unicode</function> の使用</title> <programlisting role="php"> <![CDATA[ <?php require_once 'Crypt/CHAP.php'; $cr = new Crypt_CHAP_MSCHAPv1(); echo bin2hex($cr->str2unicode('MyPw')); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/response.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/response.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/response.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-mschapv1.response"> <refnamediv> <refname>Crypt_CHAP_MSCHAPv1::response()</refname> <refpurpose>レスポンスパケットを作成する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>string <function>Crypt_CHAP_MSCHAPv1::response</function></funcdef> <paramdef>bool <parameter>$lm = &false;</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.response.desc"> &title.desc; <para> このメソッドは、レスポンスパケットを作成します。 このパケットには NT チャレンジ-レスポンスや LM チャレンジ-レスポンス が含まれます。デフォルトでは、LM チャレンジ-レスポンスは含まれません。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.response.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>bool $lm</parameter> - LM チャレンジ-レスポンス を含めるかどうか。 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.response.return"> &title.returns; <para> <parameter>string</parameter> - パケットを文字列で返します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.response.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.response.example"> &title.example; <example> <title><function>Crypt_CHAP_MSCHAPv1::response</function> の使用</title> <programlisting role="php"> <![CDATA[ <?php require_once 'Crypt/CHAP.php'; $cr = new Crypt_CHAP_MSCHAPv1(); $cr->password = 'MyPw'; echo bin2hex($cr->response()); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/nt-password-hash.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/nt-password-hash.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/nt-password-hash.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-mschapv1.ntpasswordhash"> <refnamediv> <refname>Crypt_CHAP_MSCHAPv1::ntPasswordHash()</refname> <refpurpose>指定した平文パスワードから NT ハッシュを作成する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>string <function>Crypt_CHAP_MSCHAPv1::ntPasswordHash</function></funcdef> <paramdef>string <parameter><optional>$password = ''</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.ntpasswordhash.desc"> &title.desc; <para> このメソッドは、指定した平文パスワードあるいはパスワードプロパティから LAN-Manager ハッシュを作成します。NT ハッシュは md4(str2unicode(plaintext)) のようにして計算します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.ntpasswordhash.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $password</parameter> - ハッシュするパスワード。 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.ntpasswordhash.return"> &title.returns; <para> <parameter>string</parameter> - NT ハッシュを文字列で返します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.ntpasswordhash.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.ntpasswordhash.example"> &title.example; <example> <title><function>Crypt_CHAP_MSCHAPv1::ntPasswordHash</function> の使用</title> <programlisting role="php"> <![CDATA[ <?php require_once 'Crypt/CHAP.php'; $cr = new Crypt_CHAP_MSCHAPv1(); $cr->password = 'MyPw'; echo bin2hex($cr->ntPasswordHash()); // あるいは echo bin2hex($cr->ntPasswordHash('MySecret')); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/nt-challenge-response.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/nt-challenge-response.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/nt-challenge-response.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-mschapv1.ntchallengeresponse"> <refnamediv> <refname>Crypt_CHAP_MSCHAPv1::ntChallengeResponse()</refname> <refpurpose>NT ハッシュを使用して、チャレンジ-レスポンス パケットを作成する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>string <function>Crypt_CHAP_MSCHAPv1::ntChallengeResponse</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.ntchallengeresponse.desc"> &title.desc; <para> このメソッドは、NT ハッシュを使用してチャレンジ-レスポンス パケットを作成します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.ntchallengeresponse.return"> &title.returns; <para> <parameter>string</parameter> - チャレンジ-レスポンスを文字列で返します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.ntchallengeresponse.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.ntchallengeresponse.example"> &title.example; <example> <title><function>Crypt_CHAP_MSCHAPv1::ntChallengeResponse</function> の使用</title> <programlisting role="php"> <![CDATA[ <?php require_once 'Crypt/CHAP.php'; $cr = new Crypt_CHAP_MSCHAPv1(); $cr->password = 'MyPw'; echo bin2hex($cr->ntChallengeResponse()); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/lm-password-hash.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/lm-password-hash.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/lm-password-hash.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-mschapv1.lmpasswordhash"> <refnamediv> <refname>Crypt_CHAP_MSCHAPv1::lmPasswordHash()</refname> <refpurpose>指定した平文パスワードから LAN-Manager ハッシュを作成する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>string <function>Crypt_CHAP_MSCHAPv1::lmPasswordHash</function></funcdef> <paramdef>string <parameter><optional>$password = ''</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.lmpasswordhash.desc"> &title.desc; <para> このメソッドは、指定した平文パスワードあるいはパスワードプロパティから LAN-Manager ハッシュを作成します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.lmpasswordhash.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $password</parameter> - ハッシュするパスワード。 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.lmpasswordhash.return"> &title.returns; <para> <parameter>string</parameter> - LAN-Manager ハッシュを文字列で返します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.lmpasswordhash.note"> &title.note; &note.notstatic; <para> LAN-Manager ハッシュは強力ではないので、使用すべきではありません。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.lmpasswordhash.example"> &title.example; <example> <title><function>Crypt_CHAP_MSCHAPv1::lmPasswordHash</function> の使用</title> <programlisting role="php"> <![CDATA[ <?php require_once 'Crypt/CHAP.php'; $cr = new Crypt_CHAP_MSCHAPv1(); $cr->password = 'MyPw'; echo bin2hex($cr->lmPasswordHash()); // あるいは echo bin2hex($cr->lmPasswordHash('MySecret')); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/lm-challenge-response.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/lm-challenge-response.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/lm-challenge-response.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-mschapv1.lmchallengeresponse"> <refnamediv> <refname>Crypt_CHAP_MSCHAPv1::lmChallengeResponse()</refname> <refpurpose>LAN-Manager ハッシュを使用して、チャレンジ-レスポンス パケットを作成する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>string <function>Crypt_CHAP_MSCHAPv1::lmChallengeResponse</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.lmchallengeresponse.desc"> &title.desc; <para> このメソッドは、LAN-Manager ハッシュを使用してチャレンジ-レスポンス パケットを作成します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.lmchallengeresponse.return"> &title.returns; <para> <parameter>string</parameter> - チャレンジ-レスポンスを文字列で返します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.lmchallengeresponse.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.lmchallengeresponse.example"> &title.example; <example> <title><function>Crypt_CHAP_MSCHAPv1::lmChallengeResponse</function> の使用</title> <programlisting role="php"> <![CDATA[ <?php require_once 'Crypt/CHAP.php'; $cr = new Crypt_CHAP_MSCHAPv1(); $cr->password = 'MyPw'; echo bin2hex($cr->lmChallengeResponse()); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/crypt-chap-mschapv1.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/crypt-chap-mschapv1.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/crypt-chap-mschapv1.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-mschapv1"> <refnamediv> <refname>Crypt_CHAP_MSCHAPv1::Crypt_CHAP_MSCHAPv1()</refname> <refpurpose>コンストラクタ</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Crypt/CHAP.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>Crypt_CHAP_MSCHAPv1::Crypt_CHAP_MSCHAPv1</function></funcdef> <paramdef> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.desc"> &title.desc; <para> MS-CHAPv1 に準拠したパケットを作成するための新しいオブジェクトを生成します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.note"> &title.note; <para> このクラスを使用するには、mhash 拡張モジュールが必要です。 </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/challenge-response.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/challenge-response.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-mschapv1/challenge-response.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-mschapv1.challengeresponse"> <refnamediv> <refname>Crypt_CHAP_MSCHAPv1::challengeResponse()</refname> <refpurpose>チャレンジ-レスポンス パケットを作成する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>string <function>Crypt_CHAP_MSCHAPv1::challengeResponse</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.challengeresponse.desc"> &title.desc; <para> このメソッドは、チャレンジ-レスポンス パケットを作成します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.challengeresponse.return"> &title.returns; <para> <parameter>string</parameter> - チャレンジ-レスポンス パケットを文字列で返します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.challengeresponse.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-mschapv1.challengeresponse.example"> &title.example; <example> <title><function>Crypt_CHAP_MSCHAPv1::challengeResponse</function> の使用</title> <programlisting role="php"> <![CDATA[ <?php require_once 'Crypt/CHAP.php'; $cr = new Crypt_CHAP_MSCHAPv1(); $cr->chapid = 1; $cr->password = 'MyPw'; echo bin2hex($cr->challengeResponse()); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-md5/crypt-chap-md5.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-md5/crypt-chap-md5.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-md5/crypt-chap-md5.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-md5"> <refnamediv> <refname>Crypt_CHAP_MD5::Crypt_CHAP_MD5()</refname> <refpurpose>コンストラクタ</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Crypt/CHAP.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>Crypt_CHAP_MD5::Crypt_CHAP_MD5</function></funcdef> <paramdef> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-md5.desc"> &title.desc; <para> CHAP-MD5 に準拠したパケットを作成するための新しいオブジェクトを生成します。 </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/crypt-chap-md5/challenge-response.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/crypt-chap-md5/challenge-response.xml +++ peardoc/ja/package/encryption/crypt-chap/crypt-chap-md5/challenge-response.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.crypt-chap-md5.challengeresponse"> <refnamediv> <refname>Crypt_CHAP_MD5::challengeResponse()</refname> <refpurpose>チャレンジ-レスポンス パケットを作成する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>string <function>Crypt_CHAP_MD5::challengeResponse</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.crypt-chap-md5.challengeresponse.desc"> &title.desc; <para> このメソッドは、チャレンジ-レスポンス パケットを作成します。 md5(ID + Password + Challenge) を使用します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-md5.challengeresponse.return"> &title.returns; <para> <parameter>string</parameter> - チャレンジ-レスポンス パケットを文字列で返します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-md5.challengeresponse.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.encryption.crypt-chap.crypt-chap-md5.challengeresponse.example"> &title.example; <example> <title><function>Crypt_CHAP_MD5::challengeResponse</function> の使用</title> <programlisting role="php"> <![CDATA[ <?php require_once 'Crypt/CHAP.php'; $cr = new Crypt_CHAP_MD5(); $cr->password = 'MyPw'; echo bin2hex($cr->challengeResponse()); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/intro.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/intro.xml +++ peardoc/ja/package/encryption/crypt-chap/intro.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.intro"> <refnamediv> <refname>導入</refname> <refpurpose>暗号化</refpurpose> </refnamediv> <refsect1 id="package.encryption.crypt-chap.intro.desc"> <title>CHAP - チャレンジハンドシェイク認証プロトコル (Challenge Handshake Authentication Protocol)</title> <para> CHAP は通常は PPP (Point-to-Point Protocol) ソフトウェアに認証サブシステムとして組み込まれています。 CHAP を使用すると、平文のパスワードを危険なリンク上に送信することが防げます。 伝統的な CHAP-MD5 は、パスワードを平文でサーバ上に保存しなければなりません。 MS-CHAP ではこの必要はありませんが、やはりパスワードを NT ハッシュや LAN-Manager ハッシュで保存しなければなりません。 LAN-Manager ハッシュは強力でないため、使用すべきではありません。 </para> <para> このパッケージは 3 つのクラスから構成されます。 <simplelist> <member> <link linkend="package.encryption.crypt-chap.crypt-chap-md5"> <function>Crypt_CHAP::Crypt_CHAP_MD5</function> - CHAP-MD5 (RFC 1994) に準拠したパケットを作成します。 </link> </member> <member> <link linkend="package.encryption.crypt-chap.crypt-chap-mschapv1"> <function>Crypt_CHAP::Crypt_MSCHAPv1</function> - MS-CHAPv1 (RFC 2433) に準拠したパケットを作成します。 </link> </member> <member> <link linkend="package.encryption.crypt-chap.crypt-chap-mschapv2"> <function>Crypt_CHAP::Crypt_MSCHAPv2</function> - MS-CHAPv2 (RFC 2759) に準拠したパケットを作成します。 </link> </member> </simplelist> Crypt_CHAP::Crypt_CHAP は、抽象基底クラスです。 </para> <para> MS-CHAP* を使用するには、mhash 拡張モジュールが必要です。 </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap/generate-challenge.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap/generate-challenge.xml +++ peardoc/ja/package/encryption/crypt-chap/generate-challenge.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.encryption.crypt-chap.generatechallenge"> <refnamediv> <refname>Crypt_CHAP::generateChallenge()</refname> <refpurpose>新しいランダムなチャレンジを作成する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <!-- <funcsynopsisinfo> require_once 'File/SMBPasswd.php'; </funcsynopsisinfo> --> <funcprototype> <funcdef>string <function>Crypt_CHAP::generateChallenge</function></funcdef> <paramdef>string <parameter><optional>$varname = 'challenge'</optional></parameter></paramdef> <paramdef>int <parameter><optional>$size = 8</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.encryption.crypt-chap.generatechallenge.desc"> &title.desc; <para> このメソッドは、新しいランダムなチャレンジを作成し、 それを指定したプロパティに保存します。 チャレンジのデフォルトの大きさは 8 バイトです。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.generatechallenge.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $varname</parameter> - チャレンジを保存するプロパティの名前。 </para> </listitem> <listitem> <para> <parameter>int $size</parameter> - チャレンジの大きさ。 </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.generatechallenge.return"> &title.returns; <para> <parameter>string</parameter> - チャレンジを文字列で返します。 </para> </refsect1> <refsect1 id="package.encryption.crypt-chap.generatechallenge.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.encryption.crypt-chap.generatechallenge.example"> &title.example; <example> <title><function>Crypt_CHAP::generateChallenge</function> の使用</title> <programlisting role="php"> <![CDATA[ <?php require_once 'File/SMBPasswd.php'; $cr = new Crypt_CHAP_MD5(); echo bin2hex($cr->challenge); // あるいは新しいチャレンジを作成します echo bin2hex(echo $cr->generateChallenge()); ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/encryption/crypt-chap.xml?view=markup&rev=1.1 Index: peardoc/ja/package/encryption/crypt-chap.xml +++ peardoc/ja/package/encryption/crypt-chap.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <sect1 id="package.encryption.crypt-chap"> <title>Crypt_CHAP</title> <para> さまざまな CHAP プロトコル用のパケットを作成するクラス群です。 </para> &package.encryption.crypt-chap.intro; &package.encryption.crypt-chap.generate-challenge; &package.encryption.crypt-chap.crypt-chap-md5.crypt-chap-md5; &package.encryption.crypt-chap.crypt-chap-md5.challenge-response; &package.encryption.crypt-chap.crypt-chap-mschapv1.crypt-chap-mschapv1; &package.encryption.crypt-chap.crypt-chap-mschapv1.challenge-response; &package.encryption.crypt-chap.crypt-chap-mschapv1.lm-challenge-response; &package.encryption.crypt-chap.crypt-chap-mschapv1.nt-challenge-response; &package.encryption.crypt-chap.crypt-chap-mschapv1.nt-password-hash; &package.encryption.crypt-chap.crypt-chap-mschapv1.lm-password-hash; &package.encryption.crypt-chap.crypt-chap-mschapv1.str2unicode; &package.encryption.crypt-chap.crypt-chap-mschapv1.response; &package.encryption.crypt-chap.crypt-chap-mschapv2.crypt-chap-mschapv2; &package.encryption.crypt-chap.crypt-chap-mschapv2.challenge-hash; &package.encryption.crypt-chap.crypt-chap-mschapv2.nt-password-hash-hash; </sect1> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.pear.doc (#8829) next »