bloompw

package
v0.0.0-...-a579f18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

A bitset Bloom filter for a reduced memory password representation.

See https://github.com/AndreasBriese/bbloom

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BloomPW

type BloomPW struct {
	Filter *bbloom.Bloom
}

func New

func New(filter *bbloom.Bloom) (*BloomPW, error)

New will return a new Database interface that stores entries in a bloom filter

func (BloomPW) Add

func (b BloomPW) Add(s string) error

Has satisfies the password.DbWriter interface. It writes a single password to the database

func (BloomPW) AddMultiple

func (b BloomPW) AddMultiple(s []string) error

AddMultiple satisfies the password.BulkWriter interface. It writes a number of passwords to the database

func (BloomPW) Has

func (b BloomPW) Has(s string) (bool, error)

Has satisfies the password.DB interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL