Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / login.defs.d / ENCRYPT_METHOD.xml
1 <!--
2    Copyright (c) 2007 - 2008, Nicolas François
3    All rights reserved.
4   
5    Redistribution and use in source and binary forms, with or without
6    modification, are permitted provided that the following conditions
7    are met:
8    1. Redistributions of source code must retain the above copyright
9       notice, this list of conditions and the following disclaimer.
10    2. Redistributions in binary form must reproduce the above copyright
11       notice, this list of conditions and the following disclaimer in the
12       documentation and/or other materials provided with the distribution.
13    3. The name of the copyright holders or contributors may not be used to
14       endorse or promote products derived from this software without
15       specific prior written permission.
16   
17    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18    ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
20    PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT
21    HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23    LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25    THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 -->
29 <varlistentry>
30   <term><option>ENCRYPT_METHOD</option> (string)</term>
31   <listitem>
32     <para>
33       This defines the system default encryption algorithm for encrypting
34       passwords (if no algorithm are specified on the command line).
35     </para>
36     <para>
37       It can take one of these values:
38       <itemizedlist>
39         <listitem>
40           <para><replaceable>DES</replaceable> (default)</para>
41         </listitem>
42         <listitem>
43           <para><replaceable>MD5</replaceable></para>
44         </listitem>
45         <listitem>
46           <para><replaceable>SHA256</replaceable></para>
47         </listitem>
48         <listitem>
49           <para><replaceable>SHA512</replaceable></para>
50         </listitem>
51       </itemizedlist>
52     </para>
53     <para>
54       Note: this parameter overrides the <option>MD5_CRYPT_ENAB</option>
55       variable.
56     </para>
57     <para condition="pam">
58       Note: This only affect the generation of group passwords.
59       The generation of user passwords is done by PAM and subject to the
60       PAM configuration. It is recommended to set this variable
61       consistently with the PAM configuration.
62     </para>
63   </listitem>
64 </varlistentry>