[Top]
Nettle
Nettle.HashInfo
|
Method Nettle.HashInfo()->hash()
- Method
hash
-
string hash(string data)
- Description
-
Works as a (faster) shortcut for
obj->update(data)->digest() .
- See also
-
HashState()->update() and HashState()->digest() .
- Method
hash
-
string hash(Stdio.File file, void|int bytes)
- Description
-
Works as a (faster) shortcut for
obj->update(Stdio.read_file(file))->digest() .
- Parameter bytes
-
The number of bytes of the file object file that should be
hashed. Negative numbers are ignored and the whole file is
hashed.
- See also
-
Stdio.File , HashState()->update() and
HashState()->digest() .
|