Linux crypt function 1. Crypt definition
#define _XOPEN_SOURCE/* See Feature_test_macros (7) */#include Char *crypt (const char *key, const char *salt);
Above is the definition of crypt function seen by Man 3 crypt.See from the
How to Use DM-Crypt to encrypt a Linux File System?
Readers often ask us how to implement a file system encryption method for Linux. Before discussing this topic in depth, I would like to clarify two points:
First, it is difficult to find enough
For more information about Linux programming and kernel, see crypt. Crypt is a cryptographic function based on the Data Encryption Standard (DES) algorithm.
Crypt is basically One way encryption. Therefore, crypt is only applicable to passwords and
This command is used to generate the password in the crypt format:mkpasswdAfter you enter a command, the program asks for a password and then generates a string in crypt format.If you are using an Apache Web server, you can also use
When UbuntuLinux uses an encrypted file system, data security can be well protected. In this case, even if we send our machines to hackers, as long as they do not have a key, the data they see will only be a bunch of garbled characters and there is
BKJIA quick translation: When we use the Red Hat Kickstart script or useradd or other methods to write things, we often need to use the password format encrypted by the crypt command. Is there any other way to generate a password in this format? In
We can use the MKPASSWD command: This command is used to generate the password in the crypt format:
mkpasswd
When you enter a command, the program asks for a password and then generates a crypt format string.
If you use the Apache Web server, you
Easycluster recently requires users to be created and a user account can be created on Linux. It is natural that the background program calls the useradd command line, passwords are troublesome. Check the useradd manual. You can specify a password
The crypt function is used for encryption. Currently, the encryption methods on Linux are MD5, Des, and 3 DES.
MD5 and des are used more frequently on the RedHat platform. The original form of the crypt function is:
Char * crypt (const char *
Basic knowledgeThe password for the Linux user is implemented by the function crypt (). Crypt () is a cryptographic function (password encryption, plaintext into ciphertext), the function is based on the Data Encryption Standard (DES,DATA encryption)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.