Generate different encodings of strings

Under linux, different encoding methods for generating strings:

perl -e 'print crypt("<password>",q($6$BYSimiLe)),"\n"'

in:

1. <password> is: needs to be encoded (or encrypted string)

2. $6$BYSimiLe is: custom string (hash)

2.1.$6 is: the salt part, $6 represents SHA512 encoding. You can also use $1/$2/$3... as detailed below.

2.1.1:$1:MD5(Unix)

2.1.2:$5:SHA-256(Unix)

2.1.3:$6:MD5(Unix)

2.2.$BYSimiLe : is the encrypted value. 


In summary, if you want to set a custom password as "mypass-123"
, you can get:
perl -e 'print crypt("mypass-123",q($1$BYSimiLe)),"\n"'
your password For: $1$BYSimiLe$LttB1n6yMsXP7ipq0QFQI0

--------------------------------------------------------------------------------------------------------------------------------


*nix system:
ES (Unix)
Example: IvS7aeT4NzQPM
Description: In Linux or other Linux kernel systems
Length: 13 characters
Description: The first and second bits are salt, the 'Iv' bit in the example is the salt, and the following is the hash value

System: MD5 (Unix)
Example: $1$12345678$XM4P3PrKBgKNnTaqG9P0T/ Description
: Linux or other Linux kernel systems
Length: 34 characters Encryption algorithm
for hash
: 2000 loop calls for MD5 encryption


System: SHA-512(Unix)
Example: $6$12345678$U6Yv5E1lWn6mEESzKen42o6rbEm
Description: In Linux or other Linux kernel systems
Length: 13 characters
Description: The first $6$ bit is the encryption flag, the last 8 bits are the salt, and the last bit is the hash
Encryption algorithm: 5000 times of SHA-512 encryption


System: SHA-256 (Unix)
Example: $5$12345678$jBWLgeYZbSvREnuBr5s3gp13vqi
Description: In Linux or other linux kernel systems
Length: 55 characters
Description: The first $5$ bit is the encryption flag, the last 8 bits are the salt, and the last bit is hash
encryption Algorithm: 5000 times of SHA-256 encryption


System: MD5(APR) Example: $ apr1
$12345678$auQSX8Mvzt.tdBi4y6Xgj.
Description: Linux or other Linux kernel systems
Length: 37 characters Encryption algorithm
for hash
: 2000 loop calls for MD5 encryption


Windows system:
Windows
example: Admin: b474d48cdfc4974d86ef4d24904cdd91
Length: 98 characters
Encryption algorithm: MD4(MD4(Unicode($pass)).Unicode(strtolower($username)))

mysql
system: mysql

Example: 606717496665bcba
Description: In the old version of MySql
Length: 8 bytes (16 characters)
Description: Two bytes are included, and the value of each word does not exceed 0x7fffffff

System: MySQL5
Example: *E6CC90B878B948C35E92B003C792C46C58C4AF40
Description: Newer versions of MySQL
Length: 20 bytes (40 bits)
Encryption algorithm: SHA-1(SHA-1($pass))

Other systems:
System: MD5 (WordPress)
Example: $P$B123456780BhGFYSlUqGyE6ErKErL01
Description: Length of md5 used by WordPress
: 34 characters
Description: $P$ indicates the encryption type, followed by a character, usually the character 'B', followed by 8-bit salt, followed by hash
encryption algorithm: 8192 md5 loop encryption

System: MD5 (phpBB3)
Description: phpBB 3.xx use
Example: $H$9123456785DAERgALpsri.D9z3ht120
Length: 34
characters , then the 8-bit salt, then the hash value
Encryption algorithm: 2048 loop calls for MD5 encryption

System: RAdmin v2.x
Description: In Remote Administrator v2.x version
Example: 5e32cceaafed5cc80866737dfb212d7f
Length: 16 bytes (32 characters)
Encryption algorithm: After characters are padded with 0 to 100 bytes, the padded characters are encrypted by md5 (32-bit value)

md5 encryption
Standard MD5
example: c4ca4238a0b923820dcc509a6f75849b Scope
of use: phpBB v2.x, before Joomla version 1.0.13, and other cmd
length: 16 characters
Others plus salt and deformation are similar:
md5($salt.$pass)
Example: f190ce9ac8445d249747cab7be43f7d5 : 12
is MD5 (MD5 ($ Pass))
examples: 28c8edde3d61a0411511d3b1866f0636
MD5 (MD5 (Pass $) $ Salt.)
examples: 6011527690eddca23580955c216b1fd2: wQ6
MD5 (MD5 ($ Salt) .md5 ($ Pass))
examples: 81f87275dd805aa018df8befe09fe9f8: wH6_S
MD5 ( md5($salt).$pass)
Example: 816a14db44578f516cbaef25bd8d8296:1234

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325810948&siteId=291194637