gibberishaes

package module
v0.0.0-...-f47ef2d Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 6 Imported by: 0

README

GibberishAES

A Go port of GibberishAES. The project is work in progress. Other bits will be added soon

Documentation

Index

Constants

View Source
const (
	SaltSize = 8
	Nr       = 14
	Nk       = 8
)
View Source
const Version = "0.0.0"

Version specifies the GibberishAES version being used.

Variables

View Source
var EmptyPaddingBlock = []byte{16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16}

Functions

func RandomArray

func RandomArray(num int) []byte

Types

type Cipher

type Cipher struct{}

func New

func New() *Cipher

func (*Cipher) AddCBCOpenSSLPadding

func (c *Cipher) AddCBCOpenSSLPadding(source []byte) []byte

func (*Cipher) Dec

func (c *Cipher) Dec(source []byte, password []byte) ([]byte, error)

func (*Cipher) DecString

func (c *Cipher) DecString(source string, password string) (string, error)

func (*Cipher) Enc

func (c *Cipher) Enc(source []byte, password []byte) ([]byte, error)

func (*Cipher) EncString

func (c *Cipher) EncString(source string, password string) (string, error)

func (*Cipher) GetOpenSSLKey

func (c *Cipher) GetOpenSSLKey(passwordArr []byte, saltArr []byte) OpenSSLKey

type OpenSSLKey

type OpenSSLKey struct {
	Key []byte
	Iv  []byte
}

Jump to

Keyboard shortcuts

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