Documentation ¶
Index ¶
- Variables
- func Decrypt(strTobeDeCrypted string, args ...string) (string, error)
- func Encrypt(strTobeEnCrypted string, args ...string) (string, error)
- func EncryptPwd(password string, ivs ...string) (string, error)
- func RsaSignWithPrivateKey(origData, private_key_bts []byte) (bts []byte, err error)
- type Cipher
- type DesCrypter
- type TripleDesCrypter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDataToLarge = errors.New("message too long for RSA public key size") ErrDataLen = errors.New("data length error") ErrDataBroken = errors.New("data broken, first byte is not zero") ErrKeyPairDismatch = errors.New("data is not encrypted by the private key") ErrDecryption = errors.New("decryption error") ErrPublicKey = errors.New("get public key error") ErrPrivateKey = errors.New("get private key error") )
Functions ¶
func RsaSignWithPrivateKey ¶
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
func (*Cipher) DecryptFromString ¶
type DesCrypter ¶
type DesCrypter struct {
// contains filtered or unexported fields
}
type TripleDesCrypter ¶
type TripleDesCrypter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.