Table of ContentsView in Frames

file-get-fingerprint

The file-get-fingerprint API gets the fingerprint or digest of the file. The fingerprint is calculated using MD5 or SHA-256 digest algorithm. The fingerprint is calculated over the file data or metadata or on both data and metadata depending on the scope that you have selected. The fingerprints are base64 encoded.

Data fingerprint is calculated over file contents and the metadata fingerprint is calculated over the selected attributes of the file. The following attributes are used for metadata fingerprint calculations:
  • file type (file-type)
  • file size (file-size)
  • file crtime (creation-time)
  • file mtime (modified-time)
  • file ctime (changed-time)
  • file retention time (retention-time, is-wraparound)
  • file uid (owner-id)
  • file gid (group-id)
Note: The file retention time is applicable only to WORM protected files.