Documentation
¶
Index ¶
- type CekAlgo
- type CekAlgoRsaBase64
- type CekAlgoRsaHex
- type ContentAlgo
- func NewContentAlgoAesCbcBase64(ivAes []byte) ContentAlgo
- func NewContentAlgoAesCbcHex(ivAes []byte) ContentAlgo
- func NewContentAlgoAesCtrBase64(ivAes []byte) ContentAlgo
- func NewContentAlgoAesCtrHex(ivAes []byte) ContentAlgo
- func NewContentAlgoTripleDesBase64(ivAes []byte) ContentAlgo
- func NewContentAlgoTripleDesHex(ivAes []byte) ContentAlgo
- type IAmCekAlgo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CekAlgo ¶
type CekAlgo interface { //cek只需要解密,加密是客户端的事 Decrypt(s string) ([]byte, error) // contains filtered or unexported methods }
func NewCekAlgoRsaBase64 ¶
func NewCekAlgoRsaHex ¶
type CekAlgoRsaBase64 ¶
type CekAlgoRsaBase64 struct { IAmCekAlgo // contains filtered or unexported fields }
type CekAlgoRsaHex ¶
type CekAlgoRsaHex struct { IAmCekAlgo // contains filtered or unexported fields }
type ContentAlgo ¶
type ContentAlgo interface { Encrypt(data []byte, cek []byte) (string, error) Decrypt(s string, cek []byte) ([]byte, error) }
func NewContentAlgoAesCbcBase64 ¶
func NewContentAlgoAesCbcBase64(ivAes []byte) ContentAlgo
func NewContentAlgoAesCbcHex ¶
func NewContentAlgoAesCbcHex(ivAes []byte) ContentAlgo
func NewContentAlgoAesCtrBase64 ¶
func NewContentAlgoAesCtrBase64(ivAes []byte) ContentAlgo
func NewContentAlgoAesCtrHex ¶
func NewContentAlgoAesCtrHex(ivAes []byte) ContentAlgo
func NewContentAlgoTripleDesBase64 ¶
func NewContentAlgoTripleDesBase64(ivAes []byte) ContentAlgo
func NewContentAlgoTripleDesHex ¶
func NewContentAlgoTripleDesHex(ivAes []byte) ContentAlgo
type IAmCekAlgo ¶
type IAmCekAlgo struct { }
Click to show internal directories.
Click to hide internal directories.