Make fingerprint take a string instead of a file.