CovenantSQL: github.com/CovenantSQL/CovenantSQL/client/toolkit Index | Files

package toolkit

import "github.com/CovenantSQL/CovenantSQL/client/toolkit"

Package toolkit implements handy functions for `AES-128-CBC PKCS#7` encryption and decryption for `end to end encryption`.

Index

Package Files

doc.go e2ee.go

func Decrypt Uses

func Decrypt(in, password []byte) (out []byte, err error)

Decrypt decrypts data with given password by AES-128-CBC PKCS#7. iv will be read from the head of raw.

func Encrypt Uses

func Encrypt(in, password []byte) (out []byte, err error)

Encrypt encrypts data with given password by AES-128-CBC PKCS#7, iv will be placed at head of cipher data.

Package toolkit imports 7 packages (graph). Updated 2019-05-22. Refresh now. Tools for package owners.