Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func CreateAes256GcmAead(key []byte) (cipher.AEAD, error)
- func DecryptAes256(ciphertextBytes []byte, aead cipher.AEAD) (string, error)
- func EncryptAes256(plaintext string, aead cipher.AEAD) ([]byte, error)
- func HashPassword(password string) (string, error)
- func RandString(nByte int) (string, error)
- func ReadRSAPrivateKey(filename string) (*rsa.PrivateKey, error)
- func ReadRSAPublicKey(filename string) (*rsa.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func CreateAes256GcmAead ¶ added in v1.3.0
func DecryptAes256 ¶ added in v1.3.0
func EncryptAes256 ¶ added in v1.3.0
func HashPassword ¶
func RandString ¶
func ReadRSAPrivateKey ¶
func ReadRSAPrivateKey(filename string) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.