Documentation ¶
Index ¶
- Constants
- func DecryptStruct(data interface{}, key CryptoKey) error
- func DecryptStructWithXRsa(data interface{}, xr *xrsa.XRsa) error
- func EncryptStruct(data interface{}, key CryptoKey) error
- func EncryptStructWithXRsa(data interface{}, xr *xrsa.XRsa) error
- func MakePassworkHash(password string, key CryptoKey) string
- type CipherString
- type CryptoKey
Constants ¶
View Source
const ( // AesCbc256B64 .. AesCbc256B64 = iota // AesCbc128HmacSha256B64 .. AesCbc128HmacSha256B64 // AesCbc256HmacSha256B64 .. AesCbc256HmacSha256B64 // Rsa2048OaepSha256B64 .. Rsa2048OaepSha256B64 // Rsa2048OaepSha1B64 .. Rsa2048OaepSha1B64 // Rsa2048OaepSha256HmacSha256B64 .. Rsa2048OaepSha256HmacSha256B64 // Rsa2048OaepSha1HmacSha256B64 .. Rsa2048OaepSha1HmacSha256B64 )
Variables ¶
This section is empty.
Functions ¶
func DecryptStructWithXRsa ¶
DecryptStructWithXRsa ...
func EncryptStructWithXRsa ¶
EncryptStructWithXRsa ..
func MakePassworkHash ¶
MakePassworkHash ..
Types ¶
type CipherString ¶
type CipherString struct {
// contains filtered or unexported fields
}
CipherString ..
func NewCipherString ¶
func NewCipherString(encryptedString string) (*CipherString, error)
NewCipherString ..
func NewCipherStringRaw ¶
func NewCipherStringRaw(encryptionType int, ct string, iv string, mac string) (*CipherString, error)
NewCipherStringRaw ..
func (*CipherString) Decrypt ¶
func (cs *CipherString) Decrypt(key CryptoKey) ([]byte, error)
Decrypt ..
func (*CipherString) DecryptKey ¶
func (cs *CipherString) DecryptKey(key CryptoKey, encryptionType int) (CryptoKey, error)
DecryptKey ..
Click to show internal directories.
Click to hide internal directories.