cvs: peardoc /nl/package text.xml /nl/package/text text-password.xml /nl/package/text/text-password intro.xml types.xml
| From: | Vincent Gevers | Date: | Sun, 03 Aug 2003 17:01:12 +0000 |
| Subject: | cvs: peardoc /nl/package text.xml /nl/package/text text-password.xml /nl/package/text/text-password intro.xml types.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-1190@lists.php.net to get a copy of this message | ||
vincent Sun Aug 3 13:01:12 2003 EDT
Added files:
/peardoc/nl/package text.xml
/peardoc/nl/package/text text-password.xml
/peardoc/nl/package/text/text-password intro.xml types.xml
Log:
add text package
Index: peardoc/nl/package/text.xml +++ peardoc/nl/package/text.xml <chapter id="package.text"> <title>Text</title> <titleabbrev>Text</titleabbrev> <para> Levert pakketten voor text manipulatie en analyse. </para> &package.text.text-password; </chapter> <!-- 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 --> Index: peardoc/nl/package/text/text-password.xml +++ peardoc/nl/package/text/text-password.xml <!-- $Revision: 1.1 $ --> <sect1 id="package.text.text-password"> <title>Text_Password</title> <para> Creating passwords with PHP. </para> &package.text.text-password.intro; &package.text.text-password.types; </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 --> Index: peardoc/nl/package/text/text-password/intro.xml +++ peardoc/nl/package/text/text-password/intro.xml <!-- $Revision: 1.1 $ --> <refentry id="package.text.text-password.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose> Introduction to <classname>Text_Password</classname> </refpurpose> </refnamediv> <refsect1> <title>Introduction</title> <para> Creating passwords is a very common task when creating web applications. This package provides an easy-to-use and intuitive <acronym>API</acronym> to create <itemizedlist> <listitem> <para> <link linkend="package.text.text-password.types.pronounceable">pronounceable passwords</link> </para> </listitem> <listitem> <para> <link linkend="package.text.text-password.types.unpronounceable">unpronounceable passwords</link> </para> </listitem> <listitem> <para> <link linkend="package.text.text-password.types.string">passwords based on given strings</link> </para> </listitem> </itemizedlist> For the last point, multiple, simple <link linkend="package.text.text-password.types.obfuscation"> <quote>obfuscation</quote> algorithms</link> are supported. </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 --> Index: peardoc/nl/package/text/text-password/types.xml +++ peardoc/nl/package/text/text-password/types.xml <!-- $Revision: 1.1 $ --> <refentry id="package.text.text-password.types"> <refnamediv> <refname>Supported types of passwords</refname> <refpurpose> This part of the documentation introduces the different supported types of passwords and gives examples for their usage. </refpurpose> </refnamediv> <refsect1 id="package.text.text-password.types.pronounceable"> <title>Pronounceable passwords</title> <para> One feature of the package is the ability to create passwords that are pronounceable. </para> <example> <title>Creating a pronounceable password:</title> <programlisting role="php"> <![CDATA[ require_once "Text/Password.php"; echo "Creating pronounceable password of 10 chars....: "; echo Text_Password::create() . "\n\n"; echo "Creating 3 different pronounceable passwords...: "; print_r(Text_Password::createMultiple(3)); ]]> </programlisting> </example> </refsect1> <refsect1 id="package.text.text-password.types.unpronounceable"> <title>Unpronounceable passwords</title> <para> In addition to pronounceable passwords <classname>Text_Password</classname> can also handle passwords that are not pronounceable. </para> <example> <title>Creating a unpronounceable password:</title> <programlisting role="php"> <![CDATA[ require_once "Text/Password.php"; echo "\nCreating unpronounceable password of 8 chars with a,b,c as possible chars....:\t"; echo Text_Password::create(8, 'unpronounceable', 'a,b,c') . "\n\n"; echo "\nCreating 4 different unpronounceable passwords...:\n"; print_r(Text_Password::createMultiple(4, 10, 'unpronounceable')); echo "\nCreating unpronounceable password of 8 chars with numeric chars:\t"; echo Text_Password::create(8, 'unpronounceable', 'numeric') . "\n\n"; echo "\nCreating unpronounceable password of 8 chars with alphanumeric chars:\t"; echo Text_Password::create(8, 'unpronounceable', 'alphanumeric') . "\n\n"; ]]> </programlisting> </example> </refsect1> <refsect1 id="package.text.text-password.types.string"> <title>Passwords based on given strings</title> <para> <classname>Text_Password</classname> provides the ability to create passwords that are based on a given string. In a lot of cases this string is a existing username for a <link linkend="package.authentication">authentication</link> system. </para> <example> <title>Creating passwords based on a given string:</title> <programlisting role="php"> <![CDATA[ require_once "Text/Password.php"; echo "\nCreating password from login 'olivier', type is 'reverse':\t"; echo Text_Password::createFromLogin('olivier', 'reverse') . "\n\n"; echo "\nCreating password from login 'olivier', type is 'rot13':\t"; echo Text_Password::createFromLogin('olivier', 'rot13') . "\n\n"; echo "\nCreating password from login 'olivier', type is 'rotx':\t"; echo Text_Password::createFromLogin('olivier', 'rotx', 13) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'rotx++':\t"; echo Text_Password::createFromLogin('olivier', 'rotx++', 13) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'rotx--':\t"; echo Text_Password::createFromLogin('olivier', 'rotx--', 13) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'xor':\t"; echo Text_Password::createFromLogin('olivier', 'xor', 5) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'ascii_rotx':\t"; echo Text_Password::createFromLogin('olivier', 'ascii_rotx', 5) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'ascii_rotx++':\t"; echo Text_Password::createFromLogin('olivier', 'ascii_rotx++', 5) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'ascii_rotx--':\t"; echo Text_Password::createFromLogin('olivier', 'ascii_rotx--', 5) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'shuffle':\t"; echo Text_Password::createFromLogin('olivier', 'shuffle', 1) . "\n\n"; echo "\nCreating password from an array of login 'olivier', 'martin', 'vanhoucke', 'jansen', type is 'reverse':\n"; $logins = array('olivier', 'martin', 'vanhoucke', 'jansen'); print_r(Text_Password::createMultipleFromLogin($logins, 'reverse')); ]]> </programlisting> </example> <para id="package.text.text-password.types.obfuscation"> Currently the following obfuscation algorithms are supported: <itemizedlist> <listitem> <simpara>xor</simpara> </listitem> <listitem> <simpara>rotx</simpara> </listitem> <listitem> <simpara>rotx++</simpara> </listitem> <listitem> <simpara>rotx--</simpara> </listitem> <listitem> <simpara>ascii_rotx</simpara> </listitem> <listitem> <simpara>ascii_rotx++</simpara> </listitem> <listitem> <simpara>ascii_rotx--</simpara> </listitem> <listitem> <simpara>shuffle</simpara> </listitem> <listitem> <simpara>reverse</simpara> </listitem> </itemizedlist> </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 -->
Index: peardoc/nl/package/text.xml +++ peardoc/nl/package/text.xml <chapter id="package.text"> <title>Text</title> <titleabbrev>Text</titleabbrev> <para> Levert pakketten voor text manipulatie en analyse. </para> &package.text.text-password; </chapter> <!-- 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 --> Index: peardoc/nl/package/text/text-password.xml +++ peardoc/nl/package/text/text-password.xml <!-- $Revision: 1.1 $ --> <sect1 id="package.text.text-password"> <title>Text_Password</title> <para> Creating passwords with PHP. </para> &package.text.text-password.intro; &package.text.text-password.types; </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 --> Index: peardoc/nl/package/text/text-password/intro.xml +++ peardoc/nl/package/text/text-password/intro.xml <!-- $Revision: 1.1 $ --> <refentry id="package.text.text-password.intro"> <refnamediv> <refname>Introduction</refname> <refpurpose> Introduction to <classname>Text_Password</classname> </refpurpose> </refnamediv> <refsect1> <title>Introduction</title> <para> Creating passwords is a very common task when creating web applications. This package provides an easy-to-use and intuitive <acronym>API</acronym> to create <itemizedlist> <listitem> <para> <link linkend="package.text.text-password.types.pronounceable">pronounceable passwords</link> </para> </listitem> <listitem> <para> <link linkend="package.text.text-password.types.unpronounceable">unpronounceable passwords</link> </para> </listitem> <listitem> <para> <link linkend="package.text.text-password.types.string">passwords based on given strings</link> </para> </listitem> </itemizedlist> For the last point, multiple, simple <link linkend="package.text.text-password.types.obfuscation"> <quote>obfuscation</quote> algorithms</link> are supported. </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 --> Index: peardoc/nl/package/text/text-password/types.xml +++ peardoc/nl/package/text/text-password/types.xml <!-- $Revision: 1.1 $ --> <refentry id="package.text.text-password.types"> <refnamediv> <refname>Supported types of passwords</refname> <refpurpose> This part of the documentation introduces the different supported types of passwords and gives examples for their usage. </refpurpose> </refnamediv> <refsect1 id="package.text.text-password.types.pronounceable"> <title>Pronounceable passwords</title> <para> One feature of the package is the ability to create passwords that are pronounceable. </para> <example> <title>Creating a pronounceable password:</title> <programlisting role="php"> <![CDATA[ require_once "Text/Password.php"; echo "Creating pronounceable password of 10 chars....: "; echo Text_Password::create() . "\n\n"; echo "Creating 3 different pronounceable passwords...: "; print_r(Text_Password::createMultiple(3)); ]]> </programlisting> </example> </refsect1> <refsect1 id="package.text.text-password.types.unpronounceable"> <title>Unpronounceable passwords</title> <para> In addition to pronounceable passwords <classname>Text_Password</classname> can also handle passwords that are not pronounceable. </para> <example> <title>Creating a unpronounceable password:</title> <programlisting role="php"> <![CDATA[ require_once "Text/Password.php"; echo "\nCreating unpronounceable password of 8 chars with a,b,c as possible chars....:\t"; echo Text_Password::create(8, 'unpronounceable', 'a,b,c') . "\n\n"; echo "\nCreating 4 different unpronounceable passwords...:\n"; print_r(Text_Password::createMultiple(4, 10, 'unpronounceable')); echo "\nCreating unpronounceable password of 8 chars with numeric chars:\t"; echo Text_Password::create(8, 'unpronounceable', 'numeric') . "\n\n"; echo "\nCreating unpronounceable password of 8 chars with alphanumeric chars:\t"; echo Text_Password::create(8, 'unpronounceable', 'alphanumeric') . "\n\n"; ]]> </programlisting> </example> </refsect1> <refsect1 id="package.text.text-password.types.string"> <title>Passwords based on given strings</title> <para> <classname>Text_Password</classname> provides the ability to create passwords that are based on a given string. In a lot of cases this string is a existing username for a <link linkend="package.authentication">authentication</link> system. </para> <example> <title>Creating passwords based on a given string:</title> <programlisting role="php"> <![CDATA[ require_once "Text/Password.php"; echo "\nCreating password from login 'olivier', type is 'reverse':\t"; echo Text_Password::createFromLogin('olivier', 'reverse') . "\n\n"; echo "\nCreating password from login 'olivier', type is 'rot13':\t"; echo Text_Password::createFromLogin('olivier', 'rot13') . "\n\n"; echo "\nCreating password from login 'olivier', type is 'rotx':\t"; echo Text_Password::createFromLogin('olivier', 'rotx', 13) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'rotx++':\t"; echo Text_Password::createFromLogin('olivier', 'rotx++', 13) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'rotx--':\t"; echo Text_Password::createFromLogin('olivier', 'rotx--', 13) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'xor':\t"; echo Text_Password::createFromLogin('olivier', 'xor', 5) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'ascii_rotx':\t"; echo Text_Password::createFromLogin('olivier', 'ascii_rotx', 5) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'ascii_rotx++':\t"; echo Text_Password::createFromLogin('olivier', 'ascii_rotx++', 5) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'ascii_rotx--':\t"; echo Text_Password::createFromLogin('olivier', 'ascii_rotx--', 5) . "\n\n"; echo "\nCreating password from login 'olivier', type is 'shuffle':\t"; echo Text_Password::createFromLogin('olivier', 'shuffle', 1) . "\n\n"; echo "\nCreating password from an array of login 'olivier', 'martin', 'vanhoucke', 'jansen', type is 'reverse':\n"; $logins = array('olivier', 'martin', 'vanhoucke', 'jansen'); print_r(Text_Password::createMultipleFromLogin($logins, 'reverse')); ]]> </programlisting> </example> <para id="package.text.text-password.types.obfuscation"> Currently the following obfuscation algorithms are supported: <itemizedlist> <listitem> <simpara>xor</simpara> </listitem> <listitem> <simpara>rotx</simpara> </listitem> <listitem> <simpara>rotx++</simpara> </listitem> <listitem> <simpara>rotx--</simpara> </listitem> <listitem> <simpara>ascii_rotx</simpara> </listitem> <listitem> <simpara>ascii_rotx++</simpara> </listitem> <listitem> <simpara>ascii_rotx--</simpara> </listitem> <listitem> <simpara>shuffle</simpara> </listitem> <listitem> <simpara>reverse</simpara> </listitem> </itemizedlist> </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 -->