Documentation ¶
Index ¶
- Constants
- func AESDecrypt(data, baseKey []byte) (string, error)
- func AESEncrypt(data, baseKey []byte) (string, error)
- func CipherPathCombine(args ...string) string
- func CipherPathUnmangle(path string) string
- func GenerateKey() ([]byte, error)
- type Cipher
- func (c *Cipher) EncryptJSONFields(jsonData string, key []byte, skipFields []string) (map[string]interface{}, error)
- func (c *Cipher) GenerateEncryptedPacket(data map[string]interface{}, skipFields []string) (*CipherPacket, error)
- func (c *Cipher) PGPEncryptToBase64(data []byte, filename string) (string, error)
- type CipherPacket
- type Decipher
- type DecipherPacket
- type UnmatchedField
Constants ¶
View Source
const MAGIC = "FCMN"
Variables ¶
This section is empty.
Functions ¶
func AESDecrypt ¶
func AESEncrypt ¶
func CipherPathCombine ¶
func CipherPathUnmangle ¶
func GenerateKey ¶
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
func MakeCipher ¶
func (*Cipher) EncryptJSONFields ¶
func (*Cipher) GenerateEncryptedPacket ¶
func (c *Cipher) GenerateEncryptedPacket(data map[string]interface{}, skipFields []string) (*CipherPacket, error)
type CipherPacket ¶
type Decipher ¶
type Decipher struct {
// contains filtered or unexported fields
}
func MakeDecipher ¶
func MakeDecipher(privateKey openpgp.EntityList) (*Decipher, error)
func (*Decipher) DecipherPacket ¶
func (d *Decipher) DecipherPacket(packet CipherPacket) (*DecipherPacket, error)
func (*Decipher) DecryptJsonFields ¶
type DecipherPacket ¶
type DecipherPacket struct { DecryptedData map[string]interface{} JSONChanged bool UnmatchedFields []UnmatchedField }
type UnmatchedField ¶
Click to show internal directories.
Click to hide internal directories.