Reset Password
Check your e-mail for further instructions.
Reset
Name
file_checksum
Auth
yes
Description
Calculates checksums of count bytes at offset from the file descripor fd.
DO NOT use this function to calculate checksums of an entire, unmodified file, use checksumfile instead.
Output
Returns sha1, md5 and size.
size will be equal to count unless bytes past current filesize are requested to be checksummed.
Required
Parameter | Description |
fd | int the file descriptor, for which checksums are calculated |
count | int count in bytes, for which checksums are calculated |
offset | int from where in bytes the checksum calculation starts |
Example
{ result: 0, sha1: "SHA-1 checksum", md5: "MD5 checksum", size: "count of bytes, for which the checksums are calculated" }
Errors
Code | Description |
1000 | Log in required. |
1007 | Invalid or closed file descriptor. |
1009 | Please provide 'offset'. |
1011 | Please provide 'count'. |
2000 | Log in failed. |
4000 | Too many login tries from this IP address. |
5004 | Read error. Try reopening the file. |