Documentation ¶
Index ¶
- func CreateToken(ttl time.Duration, payload interface{}, privateKey string) (string, error)
- func Decrypt(keyString, encryptedString string) (decryptedString string)
- func DecryptFile(keyString, encryptedPath, decryptedFilePath string) error
- func Encrypt(keyString, stringToEncrypt string) string
- func EncryptFile(keyString, inputFilePath, outputFilePath string) error
- func HashPassword(password string) (string, error)
- func SaveUploadedFile(file *multipart.FileHeader, fileName, dst string) error
- func ValidateToken(token, publicKey string) (interface{}, error)
- func VerifyPassword(hashedPassword, candidatePassword string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func DecryptFile ¶
func EncryptFile ¶
func HashPassword ¶
func SaveUploadedFile ¶
func SaveUploadedFile(file *multipart.FileHeader, fileName, dst string) error
func ValidateToken ¶
func VerifyPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.