Annotation of src/usr.bin/encrypt/encrypt.1, Revision 1.2
1.2 ! downsj 1: .\" $OpenBSD: encrypt.1,v 1.1 1996/08/08 02:07:22 downsj Exp $
1.1 downsj 2: .\"
3: .\" Copyright (c) 1996, Jason Downs. 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: .\"
14: .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
15: .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16: .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17: .\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
18: .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19: .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20: .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21: .\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24: .\" SUCH DAMAGE.
25: .\"
26: .Dd August 7, 1996
27: .Dt ENCRYPT 1
28: .Os OpenBSD
29: .Sh NAME
30: .Nm encrypt
31: .Nd encrypt passwords from the command line
32: .Sh SYNOPSIS
33: .Nm encrypt
34: .Op Fl m
35: .Op Fl s Ar salt
36: .Op Ar string
37: .Sh DESCRIPTION
38: .Nm encrypt
39: prints the encrypted form of
40: .Ar string
41: to the standard output. This is mostly useful for encrypting passwords
42: from within scripts, such as
43: .Xr adduser 8 .
44: .Pp
45: The following options are supported:
46: .Bl -tag -width X
47: .It Fl m
48: Encrypt the string using MD5.
49: .It Fl s Ar salt
50: Encrypt the string using DES, with the specified
51: .Ar salt .
52: .El
53: .Pp
54: If no
55: .Ar string
56: is specified,
57: .Nm encrypt
58: reads one string per line from standard input, encrypting each one with
59: the same
60: .Ar salt .
61: .Sh SEE ALSO
1.2 ! downsj 62: .Xr crypt 3 ,
1.1 downsj 63: .Xr adduser 8
64: .Sh HISTORY
65: .Nm encrypt
66: first appeared in OpenBSD 1.2.