crypto

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

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package provides some basic DES_CBC or CBC_PKCS7 encryption and decryption functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptDES_CBC

func DecryptDES_CBC(data []byte, key string, iv []byte) string

DecryptDES_CBC will decrypt a string using DES_CBC encryption.

func DecryptDES_CBC_Byte

func DecryptDES_CBC_Byte(encrypted []byte, block cipher.Block, iv []byte) string

DecryptDES_CBC_Byte will decrypt an []byte using DES_CBC encryption.

func EncryptDES_CBC_Byte

func EncryptDES_CBC_Byte(plainText []byte, block cipher.Block, iv []byte) string

EncryptDES_CBC_Byte will encrypt an []byte using DES_CBC encryption.

func EncryptDES_CBC_PKCS7

func EncryptDES_CBC_PKCS7(plainText []byte, key string, iv []byte) string

EncryptDES_CBC_PKCS7 will encrypt a string using DES_CBC_PKCS7 encryption.

Types

This section is empty.

Jump to

Keyboard shortcuts

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