crypt.3 (234622) | crypt.3 (238481) |
---|---|
1.\" FreeSec: libcrypt for NetBSD 2.\" 3.\" Copyright (c) 1994 David Burren 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 13 unchanged lines hidden (view full) --- 22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" SUCH DAMAGE. 29.\" | 1.\" FreeSec: libcrypt for NetBSD 2.\" 3.\" Copyright (c) 1994 David Burren 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 13 unchanged lines hidden (view full) --- 22.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28.\" SUCH DAMAGE. 29.\" |
30.\" $FreeBSD: stable/9/lib/libcrypt/crypt.3 234622 2012-04-23 22:37:48Z eadler $ | 30.\" $FreeBSD: stable/9/lib/libcrypt/crypt.3 238481 2012-07-15 11:39:35Z des $ |
31.\" 32.Dd April 9, 2011 33.Dt CRYPT 3 34.Os 35.Sh NAME 36.Nm crypt 37.Nd Trapdoor encryption 38.Sh LIBRARY --- 198 unchanged lines hidden (view full) --- 237.Ql sha512 238and 239.Ql nth . 240.Pp 241The 242.Fn crypt_set_format 243function sets the default encoding format according to the supplied 244.Fa string . | 31.\" 32.Dd April 9, 2011 33.Dt CRYPT 3 34.Os 35.Sh NAME 36.Nm crypt 37.Nd Trapdoor encryption 38.Sh LIBRARY --- 198 unchanged lines hidden (view full) --- 237.Ql sha512 238and 239.Ql nth . 240.Pp 241The 242.Fn crypt_set_format 243function sets the default encoding format according to the supplied 244.Fa string . |
245.Pp 246The global default format can be set using the 247.Pa /etc/auth.conf 248file using the 249.Va crypt_default 250property. | |
251.Sh RETURN VALUES 252The 253.Fn crypt 254function returns a pointer to the encrypted value on success, and NULL on 255failure. 256Note: this is not a standard behaviour, AT&T 257.Fn crypt 258will always return a pointer to a string. 259.Pp 260The 261.Fn crypt_set_format 262function will return 1 if the supplied encoding format was valid. 263Otherwise, a value of 0 is returned. 264.Sh SEE ALSO 265.Xr login 1 , 266.Xr passwd 1 , | 245.Sh RETURN VALUES 246The 247.Fn crypt 248function returns a pointer to the encrypted value on success, and NULL on 249failure. 250Note: this is not a standard behaviour, AT&T 251.Fn crypt 252will always return a pointer to a string. 253.Pp 254The 255.Fn crypt_set_format 256function will return 1 if the supplied encoding format was valid. 257Otherwise, a value of 0 is returned. 258.Sh SEE ALSO 259.Xr login 1 , 260.Xr passwd 1 , |
267.Xr auth_getval 3 , | |
268.Xr getpass 3 , | 261.Xr getpass 3 , |
269.Xr auth.conf 5 , | |
270.Xr passwd 5 271.Sh HISTORY 272A rotor-based 273.Fn crypt 274function appeared in 275.At v6 . 276The current style 277.Fn crypt --- 37 unchanged lines hidden --- | 262.Xr passwd 5 263.Sh HISTORY 264A rotor-based 265.Fn crypt 266function appeared in 267.At v6 . 268The current style 269.Fn crypt --- 37 unchanged lines hidden --- |