cryption

package
v0.0.0-...-2ca47bf Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EncryptionIv = []byte("")
View Source
var EncryptionKey = []byte("Ec7bLaTdSuXuf5pW")

Functions

func B64Decode

func B64Decode(s string) ([]byte, error)

func B64Encode

func B64Encode(b []byte) string

func CleanBytes

func CleanBytes(b []byte) []byte

func Decrypt

func Decrypt(content, key, iv []byte) []byte

func Encrypt

func Encrypt(content, key, iv []byte) []byte

func GetReceivedMessage

func GetReceivedMessage(r *http.Request) ([]byte, error)

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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