encryption

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Packge name: encryption

This package provides a simple method of encrypting and decrypting strings using key which can be generated using the GenerateKey() function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipherText string, key string) (string, error)

func Encrypt

func Encrypt(plainText string, key string, iv []byte) (string, error)

func GenerateKey

func GenerateKey() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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