Documentation
¶
Index ¶
- func AesDecrypt(ciphertext []byte, key []byte) ([]byte, error)
- func AesDecrypt64(encodedCiphertext string, key []byte) ([]byte, error)
- func AesEncrypt(plaintext []byte, key []byte) ([]byte, error)
- func AesEncrypt64(plaintext []byte, key []byte) (string, error)
- func ComparePassword(hashedPassword, password string) bool
- func HashPassword(ctx context.Context, password string) (string, error)
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesDecrypt ¶
AesDecrypt - AES Decrypt
func AesDecrypt64 ¶
AesDecrypt64 - AES Decrypt base64
func AesEncrypt ¶
AesEncrypt - AES Encrypt
func AesEncrypt64 ¶
AesEncrypt64 - AES Encrypt base64
func ComparePassword ¶
ComparePassword compares the hashed password with the provided password.
func HashPassword ¶
HashPassword hashes the provided password using bcrypt.
func PKCS7Padding ¶
PKCS7Padding - PKCS7 padding
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.