cryptutils

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AES128Decrypt

func AES128Decrypt(cipher, password string) (string, error)

AES128Decrypt decrypts a string using AES128 with the passed password

func AES128Encrypt

func AES128Encrypt(plain, password string) (string, error)

AES128Encrypt encrypts a string using AES128 with the passed password

func AES192Decrypt

func AES192Decrypt(cipher, password string) (string, error)

AES192Decrypt decrypts a string using AES192 with the passed password

func AES192Encrypt

func AES192Encrypt(plain, password string) (string, error)

AES192Encrypt encrypts a string using AES192 with the passed password

func AES256Decrypt

func AES256Decrypt(cipher, password string) (string, error)

AES256Decrypt decrypts a string using AES256 with the passed password

func AES256Encrypt

func AES256Encrypt(plain, password string) (string, error)

AES256Encrypt encrypts a string using AES256 with the passed password

func AESDecrypt

func AESDecrypt(cipher string, key []byte) (string, error)

AESDecrypt decrypts a string using the passed key

func AESEncrypt

func AESEncrypt(plain string, key []byte) (string, error)

AESEncrypt encrypts a string using the passed key

func RandomBytes

func RandomBytes(size int) ([]byte, error)

RandomBytes returns size random bytes

Types

This section is empty.

Jump to

Keyboard shortcuts

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