>
|
file := FileTools:-JoinPath( ["images/rollercoaster.jpg"], base=datadir );
|
| (1) |
Compute an MD5 hash of this file.
>
|
FileTools:-Hash( file );
|
method = "md5", output = string
| |
| (2) |
Compute an MD4 hash of this file.
>
|
FileTools:-Hash( file, method=md4 );
|
method = md4, output = string
| |
| (3) |
Compute an SHA1 hash of this file.
>
|
FileTools:-Hash( file, method=sha1 );
|
method = sha1, output = string
| |
| (4) |
Return the SHA1 hash as an integer.
>
|
FileTools:-Hash( file, method=sha1, output=integer );
|
method = sha1, output = integer
| |
| (5) |
Fetch a file from a remote source and compute an SHA1 hash.
>
|
FileTools:-Hash( "http://www.maplesoft.com/data/examples/jpg/fingerprint.jpg", method="sha1" );
|
| (6) |