VHcryptoutil

package module
v0.0.0-...-2defa88 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 15 Imported by: 0

README

VHcryptoutil

VHcryptoutil is a Go (Golang) toolkit that provides various cryptographic and data manipulation functions. This package is designed to assist developers in implementing cryptography, encryption, decryption, and data manipulation easily and efficiently.

With VHcryptoutil, you can quickly integrate powerful cryptographic functions into your projects and efficiently manipulate data. This package is suitable for the development of applications that require data security, such as financial applications, sensitive data processing, and many others.

Key Features

  • AES-GCM encryption and decryption functions.
  • Calculation of checksums and data transformation using hashing.
  • Data processing in byte and hexadecimal formats.
  • And many other features.

Installation

You can easily install this package using the following command:

go get github.com/fckveza/VHcryptoutil

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessAndTransformElement

func AccessAndTransformElement(d []byte, i int) byte

func CalculateChecksumAndTransform

func CalculateChecksumAndTransform(key []byte, data []byte) []byte

func CombineBytesToResult

func CombineBytesToResult(d []byte, i int) []byte

func DecryptWithAESGCM

func DecryptWithAESGCM(gcmKey, sign, message, aad []byte) ([]byte, error)

func EncEncKey

func EncEncKey(key *rsa.PublicKey, encryptKey []byte) string

func EncHeaders

func EncHeaders(headers map[string]string) []byte

func EncryptWithAESGCM

func EncryptWithAESGCM(data, gcmKey, nonce, aad []byte) ([]byte, error)

func GenerateAAD

func GenerateAAD(a string, b string, c int, d int, e int, f int) []byte

func GenerateSharedSecret

func GenerateSharedSecret(privateKey, publicKey []byte) ([]byte, error)

func GetIntBytesV2

func GetIntBytesV2(i int) []byte

func GetSHA256Sum

func GetSHA256Sum(args ...interface{}) []byte

func Pad

func Pad(buf []byte, size int) []byte

func Pad256

func Pad256(buf []byte, size int) []byte

func ParseHexToSlice

func ParseHexToSlice(t string) []byte

func Unpad

func Unpad(buf []byte) ([]byte, error)

func Xor

func Xor(buf []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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