crypto.SHA384
Object → crypto.SHA512 → crypto.SHA384
SHA384 object.
SHA384 is SHA512 with a different initial state and the digest truncated to 48 bytes, so it inherits all methods from SHA512 and only overrides the initial state.
Constructor
crypto.SHA384(): crypto.SHA384Fields
| Name | Type | Description |
|---|---|---|
digest_size | integer | = 48 |
block_size | integer | = 128 |
digest | fun( message: string, as_hex: boolean? ): string |
Operators
| Operator | Operand | Result |
|---|---|---|
call | | crypto.SHA384 |
Static functions
#crypto.SHA384.digest
function crypto.SHA384.digest(message: string, as_hex?: boolean): string
Computes the SHA384 digest of the given input string.
This static method takes a string and returns its SHA384 hash as a hexadecimal string. Commonly used for checksums, data integrity validation, and password hashing.
Parameters
| Name | Type | Description |
|---|---|---|
message | string | The message to compute SHA384 for. |
as_hexoptional | boolean | If true, the result will be a hex string. |
Returns
| Type | Name | Description |
|---|---|---|
string | str_result | The SHA384 string of the message. |