Hashes checks.
- Source:
Methods
(inner) md5(value) → {boolean}
Check if is a valid MD5 hash string
Interfaces: all
, any
, not
, err
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
string
|
hash string |
Returns:
- Type:
-
boolean
Example
be.md5('00236a2ae558018ed13b5222ef1bd977') // true
be.not.md5('00236a2ae558018ed13b5222ef1bd977') // false
(inner) sha1(value) → {boolean}
Check if is a valid SHA1 hash string
Interfaces: all
, any
, not
, err
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
string
|
hash string |
Returns:
- Type:
-
boolean
Example
be.sha1('aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d') // true
be.not.sha1('aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d') // false
(inner) sha256(value) → {boolean}
Check if is a valid SHA256 hash string
Interfaces: all
, any
, not
, err
- Since:
- 1.9.0
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
string
|
hash string |
Returns:
- Type:
-
boolean
Example
be.256('7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069') // true
be.not.256('7f83b1657ff1fc53b92dc18148a1d65dfc2d4b1fa3d677284addd200126d9069') // false
(inner) sha512(value) → {boolean}
Check if is a valid SHA512 hash string
Interfaces: all
, any
, not
, err
- Since:
- 1.9.0
- Source:
Parameters:
Name | Type | Description |
---|---|---|
value |
string
|
hash string |
Returns:
- Type:
-
boolean
Example
be.sha512('aeae379a6e857728e44164267fdb7a0e27b205d757cc19899586c89dbb221930f1813d02ff93a661859bc17065eac4d6edf3c38a034e6283a84754d52917e5b0') // true
be.not.sha512('aeae379a6e857728e44164267fdb7a0e27b205d757cc19899586c89dbb221930f1813d02ff93a661859bc17065eac4d6edf3c38a034e6283a84754d52917e5b0') // false