Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/klauspost/password
/ types & classes
Types & classes
22 in github.com/klauspost/password
⨍
Functions
93
◇
Types & classes
22
↓ 1 callers
TypeAlias
MemDB
This is the simplest possible database that must be supported. If you can mimmic this with your database you are good to go!
drivers/testdb/memdb.go:17
↓ 1 callers
TypeAlias
MemDBBulk
MemDBBulk is the same as MemDB, but also satisfies the bulk interface.
drivers/testdb/memdb.go:44
Struct
BloomPW
drivers/bloompw/bloom.go:12
Struct
BoltDB
drivers/boltpw/boltdb.go:10
Interface
BulkWriter
If your DbWriter implements this, input will be sent in batches instead of using Add.
bulk.go:7
Struct
Cassandra
Cassandra can be used for adding and checking passwords.
drivers/cassandra/cassandra.go:12
Struct
CustomSanitizer
password_test.go:242
Interface
DB
A DB should check the database for the supplied password. The password sent to the interface has always been sanitized.
password.go:44
Interface
DbWriter
A DbWriter is used for adding passwords to a database. Items sent to Add has always been sanitized, however the same passwords can be sent multiple ti
password.go:38
Struct
LineReader
LineReader will return one line when Next() is called.
tokenizer/linereader.go:16
Struct
Mongo
Mongo can be used for adding and checking passwords. Note that passwords are cut until they are below 512 bytes when checking against the database, si
drivers/mgopw/mgo.go:20
Struct
PassErr
testdata/testset.go:1816
Interface
Sanitizer
A Sanitizer should prepare a password, and check the basic properties that should be satisfied. For an example, see DefaultSanitizer
password.go:51
Struct
Sql
Sql can be used for adding and checking passwords. Insert and Query are generated for MySQL, and should very likely be changed for other databases. Se
drivers/sqlpw/sql.go:26
Interface
TestDB
drivers/testing.go:23
Interface
Tokenizer
Tokenizer delivers input tokens (passwords). Calling Next() should return the next password, and when finished io.EOF should be returned. It is ok fo
password.go:61
Struct
asset
testdata/generated.go:18
Struct
bindataFileInfo
testdata/generated.go:23
Struct
bintree
testdata/generated.go:156
Struct
bulkWrapper
bulk.go:11
Struct
defaultSanitizer
doc at DefaultSanitizer
password.go:96
Interface
initer
password.go:112