CRYPT_CHECKSALT - Online Linux Manual PageSection : 3
Updated : November 8, 2018
Operating system : libxcrypt

NAME crypt_checksalt validate a crypt setting string

LIBRARYCrypt Library (libcrypt , -lcrypt)

SYNOPSIS #include <crypt.h>
int crypt_checksalt ( const char *setting );

DESCRIPTION crypt_checksalt checks the setting string against the system configuration and reports whether the hashing method and parameters it specifies are acceptable. It is intended to be used by programs such as login(1) to determine whether the user's passphrase should be re-hashed using the currently preferred hashing method.

RETURN VALUESThe return value is 0 if there is nothing wrong with this setting. Otherwise, it is one of the following constants: Dv CRYPT_SALT_OK setting is a fully correct setting string. This constant is guaranteed to equal 0. Dv CRYPT_SALT_INVALID setting is not a valid setting string; either it specifies a hashing method that is not known to this version of libxcrypt, or it specifies invalid parameters for the method. Dv CRYPT_SALT_METHOD_DISABLED (Not implemented, yet) setting specifies a hashing method that is no longer allowed to be used at all; crypt will fail if passed this setting. Manual intervention will be required to reactivate the user's account. Dv CRYPT_SALT_METHOD_LEGACY setting specifies a hashing method that is no longer considered strong enough for use with new passphrases. crypt will still authenticate a passphrase against this setting, but if authentication succeeds, the passphrase should be re-hashed using the currently preferred method. Dv CRYPT_SALT_TOO_CHEAP (Not implemented, yet) setting specifies cost parameters that are considered too cheap for use with new passphrases. crypt will still authenticate a passphrase against this setting, but if authentication succeeds, the passphrase should be re-hashed using the currently preferred method.

FEATURE TEST MACROS <crypt.h> will define the macro CRYPT_CHECKSALT_AVAILABLE if crypt_checksalt is available in the current version of libxcrypt.

BUGSSince full configurability is not yet implemented, the current implementation will only ever return CRYPT_SALT_OK (0) or CRYPT_SALT_INVALID when invoked.

PORTABILITY NOTESThe function crypt_checksalt is not part of any standard. It was added to libxcrypt in version 4.3.0.

ATTRIBUTESFor an explanation of the terms used in this section, see attributes(7). InterfaceAttributeValue crypt_checksalt Thread safetyMT-Safe

SEE ALSOcrypt(3), crypt_gensalt(3), crypt(5)
0
Johanes Gumabo
Data Size   :   8,286 byte
man-crypt_checksalt.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 182,824
Visitor ID   :     :  
Visitor IP   :   3.129.42.59   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (mdoc_err|80|crypt_checksalt.3|38|Dv|.It Dv CRYPT_SALT_OK )         (mdoc_err|80|crypt_checksalt.3|42|Dv|.It Dv CRYPT_SALT_INVALID )         (mdoc_err|80|crypt_checksalt.3|47|Dv|.It Dv CRYPT_SALT_METHOD_DISABLED (Not implemented, yet) )         (mdoc_err|80|crypt_checksalt.3|54|Dv|.It Dv CRYPT_SALT_METHOD_LEGACY )         (mdoc_err|80|crypt_checksalt.3|62|Dv|.It Dv CRYPT_SALT_TOO_CHEAP (Not implemented, yet) )