dreamworkAPI
Ctrl K
GitHub
classDocs / crypto / SHA384

crypto.SHA384

classsharedmenusource
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.SHA384

Fields

NameTypeDescription
digest_sizeinteger = 48
block_sizeinteger = 128
digestfun( message: string, as_hex: boolean? ): string

Operators

OperatorOperandResult
callcrypto.SHA384

Static functions

#crypto.SHA384.digest

sharedmenunodiscardsource
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
NameTypeDescription
messagestringThe message to compute SHA384 for.
as_hexoptionalbooleanIf true, the result will be a hex string.
Returns
TypeNameDescription
stringstr_resultThe SHA384 string of the message.

Inherited methods

From crypto.SHA512 3
Generated from the dreamwork meta branch.