Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod8 / kas_stringtokey.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3kas_stringtokey - Converts a character string into an octal key
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<kas stringtokey> S<<< B<-string> <I<password string>> >>>
11 S<<< [B<-cell> <I<cell name>>] >>> [B<-help>]
12
13B<kas str> S<<< B<-s> <I<password string>> >>> S<<< [B<-c> <I<cell name>>] >>> [B<-h>]
14
15=for html
16</div>
17
18=head1 DESCRIPTION
19
20The B<kas stringtokey> command converts the character string specified
21with the B<-string> argument into an octal string suitable for use as an
22encryption key.
23
24The B<kas> command interpreter generates the octal key by using an
25encryption algorithm on the combination of the specified string and the
26name of the local cell (as recorded in the local F</usr/vice/etc/ThisCell>
27file). Use the B<-cell> argument to convert a string into a key
28appropriate for a cell other than the local one.
29
30=head1 CAUTIONS
31
32This command writes the key to the standard output stream, on which it can
33possibly be intercepted by third parties. It is not very secure to use the
34key in an actual Authentication Database entry.
35
36=head1 OPTIONS
37
38=over 4
39
40=item B<-string> <I<password string>>
41
42Specifies the character string to convert into an octal key.
43
44=item B<-cell> <I<cell name>>
45
46Specifies the complete Internet domain name of the cell to combine with
47the password string while generating the key. If this argument is omitted,
48the B<kas> command interpreter determines the name of the local cell by
49consulting:
50
51=over 4
52
53=item *
54
55First, the value of the environment variable AFSCELL.
56
57=item *
58
59Second, the cellname in the F</usr/vice/etc/ThisCell> file on the local
60machine.
61
62=back
63
64=item B<-help>
65
66Prints the online help for this command. All other valid options are
67ignored.
68
69=back
70
71=head1 OUTPUT
72
73The output is of the following form:
74
75 Converting I<password string> in realm 'I<cell_name>' yields key='I<key>'.
76
77=head1 EXAMPLES
78
79The following example shows the octal key equivalent of the string
80C<new_pswd> in the Example Corporation cell.
81
82 % kas stringtokey new_pswd
83 Converting new_pswd in realm 'EXAMPLE.COM' yields
84 key='\346\307\364\320\263\233\342\354'.
85
86=head1 PRIVILEGE REQUIRED
87
88None, and no password is required.
89
90=head1 SEE ALSO
91
92L<ThisCell(5)>,
93L<kas(8)>
94
95=head1 COPYRIGHT
96
97IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
98
99This documentation is covered by the IBM Public License Version 1.0. It was
100converted from HTML to POD by software written by Chas Williams and Russ
101Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.