Documentation
¶
Index ¶
- Variables
- func GetFileSize(filename string) (int64, error)
- func HashPassword(password string) (string, error)
- func IOMd5(file io.Reader) (string, int64, error)
- func IOSha1(ioReader io.Reader) (string, int64, error)
- func MD5(data []byte) (string, int64, error)
- func PathExists(path string) (bool, error)
- func Sha1(data []byte) (string, int64, error)
- func VerifyPassword(hashed, password string) bool
- type Sha1Stream
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHashFailed = errors.InternalServer(reason, "Hash password failed")
Functions ¶
func GetFileSize ¶
func HashPassword ¶
func PathExists ¶
func VerifyPassword ¶
Types ¶
type Sha1Stream ¶
type Sha1Stream struct {
// contains filtered or unexported fields
}
func (*Sha1Stream) Reset ¶
func (ss *Sha1Stream) Reset()
func (*Sha1Stream) Sum ¶
func (ss *Sha1Stream) Sum() string
func (*Sha1Stream) UpdateByte ¶
func (ss *Sha1Stream) UpdateByte(data []byte) (size int64, err error)
Click to show internal directories.
Click to hide internal directories.