Documentation ¶
Index ¶
Constants ¶
View Source
const SALT = 12
Variables ¶
This section is empty.
Functions ¶
func RandomByte ¶
func RegisterLoogers ¶
func RegisterLoogers(p RegisterLogger)
Types ¶
type BCryptService ¶
type BCryptService struct {
// contains filtered or unexported fields
}
func Bcrypt ¶
func Bcrypt(password []byte) *BCryptService
func (*BCryptService) Compare ¶
func (y *BCryptService) Compare(hash []byte) (err error)
func (*BCryptService) Hash ¶
func (y *BCryptService) Hash() (pass string, err error)
type MachineProtocol ¶
func MachineProtocolEncrypted ¶
func MachineProtocolEncrypted(enc []byte) *MachineProtocol
func (*MachineProtocol) GetIv ¶
func (y *MachineProtocol) GetIv() []byte
func (*MachineProtocol) GetKey ¶
func (y *MachineProtocol) GetKey() []byte
func (*MachineProtocol) GetMessage ¶
func (y *MachineProtocol) GetMessage() []byte
func (*MachineProtocol) IsValidProtocol ¶
func (y *MachineProtocol) IsValidProtocol() bool
func (*MachineProtocol) ToBase64 ¶
func (y *MachineProtocol) ToBase64() string
func (*MachineProtocol) ToByteArray ¶
func (y *MachineProtocol) ToByteArray() []byte
type RegisterLogger ¶
type RegisterLogger struct { Typ loggers.LoggerType UserId int Description string }
Click to show internal directories.
Click to hide internal directories.