crypto

package
v0.0.0-...-7d84395 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeSteganography

func DecodeSteganography(secretImage []byte) string

DecodeSteganography decodes the image. Get the secret message and returns it as a string.

func Decrypt

func Decrypt(encryptedBody, keya string) string

Decrypt method decrypts body that is send, by using keya. It use Stream Cipher Algorithm (CFB).

func EncodeSteganography

func EncodeSteganography(message string, plainImage []byte) []byte

EncodeSteganography encodes the image with given secret message. It returns the encoded image file as a byte array.

func Encrypt

func Encrypt(body string, keya string) string

Encrypt method encrypts body that is send, by using keya. It use Stream Cipher Algorithm (CFB).

Types

This section is empty.

Jump to

Keyboard shortcuts

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