toolkit

package
v0.0.0-...-020e20f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

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

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL