File: const.go

package info (click to toggle)
golang-github-go-crypt-crypt 0.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 516 kB
  • sloc: makefile: 4
file content (37 lines) | stat: -rw-r--r-- 896 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package sha1crypt

import (
	"math"
)

const (
	// EncodingFmt is the encoding format for this algorithm.
	EncodingFmt = "$sha1$%d$%s$%s"

	// AlgName is the name for this algorithm.
	AlgName = "sha1crypt"

	// AlgIdentifier is the identifier used in this algorithm.
	AlgIdentifier = "sha1"

	// SaltLengthMin is the minimum salt size accepted.
	SaltLengthMin = 0

	// SaltLengthMax is the maximum salt size accepted.
	SaltLengthMax = 64

	// SaltLengthDefault is the default salt size.
	SaltLengthDefault = 8

	// SaltCharSet are the valid characters for the salt.
	SaltCharSet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789./"

	// IterationsMin is the minimum iterations accepted.
	IterationsMin = 0

	// IterationsMax is the maximum iterations accepted.
	IterationsMax uint32 = math.MaxUint32

	// IterationsDefault is the default iterations.
	IterationsDefault = 480000
)