CovenantSQL: Index | Files

package toolkit

import ""

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


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.