Documentation ¶
Index ¶
- Variables
- func CompareHash(hashedPassword, password string) error
- func DataSign(data interface{}, key *rsa.PrivateKey) (string, error)
- func GenerateSign() (*rsa.PrivateKey, error)
- func HashString(data string) string
- func MarshalSign(key *rsa.PrivateKey) (privateKey, publicKey string)
- func UnmarshalPrivate(privateKey string) (*rsa.PrivateKey, error)
- func UnmarshalPublic(publicKey string) (*rsa.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrMismatchedHashAndPassword = errors.New("hashedPassword is not the hash of the given password")
)
Functions ¶
func CompareHash ¶
func GenerateSign ¶
func GenerateSign() (*rsa.PrivateKey, error)
func HashString ¶
func MarshalSign ¶
func MarshalSign(key *rsa.PrivateKey) (privateKey, publicKey string)
func UnmarshalPrivate ¶
func UnmarshalPrivate(privateKey string) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.