Documentation
¶
Index ¶
- func SecureToken() string
- type AESBlockEncrypter
- func (a *AESBlockEncrypter) Decrypt(ciphertextBase64 string, ivBase64 string) (decryptedString string)
- func (a *AESBlockEncrypter) Encrypt(plaintext string) (encryptedString string, iv string)
- func (a *AESBlockEncrypter) EncryptWithIV(plaintext string, ivBytes []byte) (encryptedString string, iv string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AESBlockEncrypter ¶
type AESBlockEncrypter struct {
Key string
}
func (*AESBlockEncrypter) Decrypt ¶
func (a *AESBlockEncrypter) Decrypt(ciphertextBase64 string, ivBase64 string) (decryptedString string)
func (*AESBlockEncrypter) Encrypt ¶
func (a *AESBlockEncrypter) Encrypt(plaintext string) (encryptedString string, iv string)
func (*AESBlockEncrypter) EncryptWithIV ¶
func (a *AESBlockEncrypter) EncryptWithIV(plaintext string, ivBytes []byte) (encryptedString string, iv string)
Click to show internal directories.
Click to hide internal directories.