Class M.SHA256
Extends
M.Object.
This prototype defines a hashing mechanism based on the SHA256 algorithm. You normally
don't call this object respectively its methods directly, but let M.Cypher handle
this.
Defined in: sha256.js.
Constructor Attributes | Constructor Name and Description |
---|---|
M.SHA256()
|
Field Attributes | Field Name and Description |
---|---|
Defines the bits per input character: 8 - ASCII, 16 - Unicode
|
|
Defines the hex output format: 0 - lowercase, 1 - uppercase
|
|
The type of this object.
|
Method Attributes | Method Name and Description |
---|---|
hash(input)
This method is called from the 'outside world', controls the hashing and
finally returns the hash value.
|
Field Detail
{Number}
chrsz
Defines the bits per input character: 8 - ASCII, 16 - Unicode
{Number}
hexcase
Defines the hex output format: 0 - lowercase, 1 - uppercase
{String}
type
The type of this object.
Method Detail
{String}
hash(input)
This method is called from the 'outside world', controls the hashing and
finally returns the hash value.
- Parameters:
- {String} input
- The input string to be hashed.
- Returns:
- {String} The sha256 hashed string.