bloomfilter.js icon indicating copy to clipboard operation
bloomfilter.js copied to clipboard

Possible to serialize?

Open devinus opened this issue 9 years ago • 1 comments

We're wondering if we can store the filter somehow for use later.

devinus avatar Jul 30 '15 08:07 devinus

@devinus

var array = [].slice.call(bloom.buckets),
      json = JSON.stringify(array);

should work for serialization. Take a look at https://github.com/mozilla/fxa-password-strength-checker for a stored filter.

TDA avatar Aug 03 '15 18:08 TDA