From: Eivind Eklund Date: 2004-11-05T16:54:02+09:00 Subject: Re: manipulating Digest state On Fri, 5 Nov 2004 14:16:08 +0900, leon breedt wrote: > Hi, > > Perhaps this is not possible, but I was wondering if there was a way > to save/load the state of a Digest. Not the digest value itself but > the state that gives a particular digest value. Unless the Digest class is "special", you should be able to just data = Marshal.dump(digest) and restoire with Marshal.load(data). > Is this at all feasible? (Leaving security/integrity concerns aside). Yes. The security side is also fairly OK (primary new issues: Synchronized disk writes and access permissions to aborted fil;e and serialized Digest, and the increased corruption time window.) Eivind. -- Hazzle free packages for Ruby? RPA is available from http://www.rubyarchive.org/