Documentation
¶
Index ¶
- type Decrypter
- func (d *Decrypter) By3Des(c *cipher.TripleDesCipher) *Decrypter
- func (d *Decrypter) ByAes(c *cipher.AesCipher) *Decrypter
- func (d *Decrypter) ByBlowfish(c *cipher.BlowfishCipher) *Decrypter
- func (d *Decrypter) ByDes(c *cipher.DesCipher) *Decrypter
- func (d *Decrypter) ByRc4(c *cipher.Rc4Cipher) *Decrypter
- func (d *Decrypter) ByRsa(kp *keypair.RsaKeyPair) *Decrypter
- func (d *Decrypter) ByTea(c *cipher.TeaCipher) *Decrypter
- func (d *Decrypter) FromBase64Bytes(b []byte) *Decrypter
- func (d *Decrypter) FromBase64File(f fs.File) *Decrypter
- func (d *Decrypter) FromBase64String(s string) *Decrypter
- func (d *Decrypter) FromHexBytes(b []byte) *Decrypter
- func (d *Decrypter) FromHexFile(f fs.File) *Decrypter
- func (d *Decrypter) FromHexString(s string) *Decrypter
- func (d *Decrypter) FromRawBytes(b []byte) *Decrypter
- func (d *Decrypter) FromRawFile(f fs.File) *Decrypter
- func (d *Decrypter) FromRawString(s string) *Decrypter
- func (d *Decrypter) ToBytes() []byte
- func (d *Decrypter) ToString() string
- type Encrypter
- func (e *Encrypter) By3Des(c *cipher.TripleDesCipher) *Encrypter
- func (e *Encrypter) ByAes(c *cipher.AesCipher) *Encrypter
- func (e *Encrypter) ByBlowfish(c *cipher.BlowfishCipher) *Encrypter
- func (e *Encrypter) ByDes(c *cipher.DesCipher) *Encrypter
- func (e *Encrypter) ByRc4(c *cipher.Rc4Cipher) *Encrypter
- func (e *Encrypter) ByRsa(kp *keypair.RsaKeyPair) *Encrypter
- func (e *Encrypter) ByTea(c *cipher.TeaCipher) *Encrypter
- func (e *Encrypter) FromBytes(b []byte) *Encrypter
- func (e *Encrypter) FromFile(f fs.File) *Encrypter
- func (e *Encrypter) FromString(s string) *Encrypter
- func (e *Encrypter) ToBase64Bytes() []byte
- func (e *Encrypter) ToBase64String() string
- func (e *Encrypter) ToHexBytes() []byte
- func (e *Encrypter) ToHexString() string
- func (e *Encrypter) ToRawBytes() []byte
- func (e *Encrypter) ToRawString() string
- type Signer
- func (s *Signer) ByEd25519(kp *keypair.Ed25519KeyPair) *Signer
- func (s *Signer) ByRsa(kp *keypair.RsaKeyPair) *Signer
- func (s *Signer) FromBytes(b []byte) *Signer
- func (s *Signer) FromFile(f fs.File) *Signer
- func (s *Signer) FromString(str string) *Signer
- func (s *Signer) ToBase64Bytes() []byte
- func (s *Signer) ToBase64String() string
- func (s *Signer) ToHexBytes() []byte
- func (s *Signer) ToHexString() string
- func (s *Signer) ToRawBytes() []byte
- func (s *Signer) ToRawString() string
- type Verifier
- func (v *Verifier) ByEd25519(kp *keypair.Ed25519KeyPair) *Verifier
- func (v *Verifier) ByRsa(kp *keypair.RsaKeyPair) *Verifier
- func (v *Verifier) FromBytes(b []byte) *Verifier
- func (v *Verifier) FromFile(f fs.File) *Verifier
- func (v *Verifier) FromString(s string) *Verifier
- func (v *Verifier) ToBool() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decrypter ¶
type Decrypter struct {
Error error
// contains filtered or unexported fields
}
func (*Decrypter) By3Des ¶
func (d *Decrypter) By3Des(c *cipher.TripleDesCipher) *Decrypter
func (*Decrypter) ByBlowfish ¶
func (d *Decrypter) ByBlowfish(c *cipher.BlowfishCipher) *Decrypter
func (*Decrypter) ByRc4 ¶
ByRc4 decrypts by RC4.
func (*Decrypter) ByRsa ¶
func (d *Decrypter) ByRsa(kp *keypair.RsaKeyPair) *Decrypter
func (*Decrypter) ByTea ¶
ByTea decrypts by TEA.
type Encrypter ¶
type Encrypter struct {
Error error
// contains filtered or unexported fields
}
func (*Encrypter) By3Des ¶
func (e *Encrypter) By3Des(c *cipher.TripleDesCipher) *Encrypter
func (*Encrypter) ByBlowfish ¶
func (e *Encrypter) ByBlowfish(c *cipher.BlowfishCipher) *Encrypter
func (*Encrypter) ByRc4 ¶
ByRc4 encrypts by RC4.
func (*Encrypter) ByRsa ¶
func (e *Encrypter) ByRsa(kp *keypair.RsaKeyPair) *Encrypter
func (*Encrypter) ByTea ¶
ByTea encrypts by TEA.
func (*Encrypter) FromBytes ¶
FromBytes encodes from byte slice.
func (*Encrypter) FromString ¶
FromString encodes from string.
func (*Encrypter) ToBase64Bytes ¶
ToBase64Bytes outputs as base64 byte slice.
func (*Encrypter) ToBase64String ¶
ToBase64String outputs as base64 string.
func (*Encrypter) ToHexBytes ¶
ToHexBytes outputs as hex byte slice.
func (*Encrypter) ToHexString ¶
ToHexString outputs as hex string.
func (*Encrypter) ToRawBytes ¶
ToRawBytes outputs as raw byte slice without encoding.
type Signer ¶
type Signer struct {
Error error
// contains filtered or unexported fields
}
func (*Signer) ByEd25519 ¶ added in v1.1.1
func (s *Signer) ByEd25519(kp *keypair.Ed25519KeyPair) *Signer
ByEd25519 signs the data using ED25519 digital signature
func (*Signer) ByRsa ¶
func (s *Signer) ByRsa(kp *keypair.RsaKeyPair) *Signer
ByRsa signs the data using RSA digital signature
func (*Signer) ToBase64Bytes ¶
ToBase64Bytes outputs as base64 byte slice.
func (*Signer) ToBase64String ¶
ToBase64String outputs as base64 string.
func (*Signer) ToHexBytes ¶
ToHexBytes outputs as hex byte slice.
func (*Signer) ToHexString ¶
ToHexString outputs as hex string.
func (*Signer) ToRawBytes ¶
ToRawBytes outputs as raw byte slice without encoding.
type Verifier ¶
type Verifier struct {
Error error
// contains filtered or unexported fields
}
func (*Verifier) ByEd25519 ¶ added in v1.1.1
func (v *Verifier) ByEd25519(kp *keypair.Ed25519KeyPair) *Verifier
ByEd25519 verifies the signature using ED25519 digital signature verification
func (*Verifier) ByRsa ¶
func (v *Verifier) ByRsa(kp *keypair.RsaKeyPair) *Verifier
ByRsa verifies the signature using RSA digital signature verification
Source Files
¶
- 3des.go
- aes.go
- blowfish.go
- decrypter.go
- des.go
- ed25519.go
- encryper.go
- rc4.go
- rsa.go
- signer.go
- tea.go
- verifier.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package triple_des implements Triple DES encryption and decryption with streaming support.
|
Package triple_des implements Triple DES encryption and decryption with streaming support. |
|
Package aes implements AES encryption and decryption with streaming support.
|
Package aes implements AES encryption and decryption with streaming support. |
|
Package blowfish implements Blowfish encryption and decryption with streaming support.
|
Package blowfish implements Blowfish encryption and decryption with streaming support. |
|
Package des implements DES encryption and decryption with streaming support.
|
Package des implements DES encryption and decryption with streaming support. |
|
Package keypair provides ED25519 key pair management functionality.
|
Package keypair provides ED25519 key pair management functionality. |
|
Package rc4 implements RC4 encryption and decryption with streaming support
|
Package rc4 implements RC4 encryption and decryption with streaming support |
|
Package tea implements TEA encryption and decryption with streaming support.
|
Package tea implements TEA encryption and decryption with streaming support. |