Debian Codegraph @

bcrypt/const.go

raw symbols SCIP
1 package bcrypt
2
3 const (
4 MinCost int = 4 // the minimum allowable cost as passed in to GenerateFromPassword
5 MaxCost int = 31 // the maximum allowable cost as passed in to GenerateFromPassword
6 DefaultCost int = 10 // the cost that will actually be set if a cost below MinCost is passed into GenerateFromPassword
7 EncodedSaltSize = 22
8 EncodedHashSize = 31
9 )
10
11 const (
12 majorVersion = '2'
13 minorVersion = 'a'
14 maxSaltSize = 16
15 maxCryptedHashSize = 23
16 minHashSize = 59
17 )
18
19 // magicCipherData is an IV for the 64 Blowfish encryption calls in
20 // bcrypt(). It's the string "OrpheanBeholderScryDoubt" in big-endian bytes.
21 var magicCipherData = []byte{
22 0x4f, 0x72, 0x70, 0x68,
23 0x65, 0x61, 0x6e, 0x42,
24 0x65, 0x68, 0x6f, 0x6c,
25 0x64, 0x65, 0x72, 0x53,
26 0x63, 0x72, 0x79, 0x44,
27 0x6f, 0x75, 0x62, 0x74,
28 }