encryption

package
v0.0.0-...-c91f845 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package encryption contains funtions to encrypt and decrypt text used by the application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHash

func CreateHash(key string) string

CreateHash creates a MD5 sum from the encryption key

func DecryptData

func DecryptData(encodedCiphertext string, passphrase string) string

DecryptData decrypts a slice of bytes using a passphrase

func EncryptData

func EncryptData(data string, passphrase string) string

EncryptData encrypts a slice of bytes using a passphrase

Types

This section is empty.

Jump to

Keyboard shortcuts

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