Can I serialize a ruby Digest::SHA1 instance object?
G'day people, I am re-implementing an existent custom file upload service in ruby (sinatra) with redis as a backing store. Client calculates a SHA1 hash and initiates an upload uploads max 64K chunks until finished Server appends chunks to file calculates SHA1 hash of complete file to verify correct receipt Now, what I am hoping to do is use ruby (1.9.3) Digest::SHA1 << (update) operator on each chunk, (rather than having to read the ENTIRE file from scratch at the end). [Large files > 1GB]. Unfortunately Digest::SHA1 and Marshal.dump aren't compatible 1.9.3p125 :001 > require 'digest' => true