Skip to Content Skip to Search

A module for the method that calculates the checksum value of notes.

This checksum may be used by Anki to detect duplicates.

Methods
C

Instance Public methods

checksum(sfld)

Returns the integer representation of the first 8 characters of the SHA-1 digest of the sfld argument

# File lib/anki_record/helpers/checksum_helper.rb, line 13
def checksum(sfld)
  Digest::SHA1.hexdigest(sfld)[0...8].to_i(16).to_s
end