tripleDesHelper

package
v0.0.0-...-7538a8c Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

ECB PKCS5Padding

func PKCS5Unpadding

func PKCS5Unpadding(origData []byte) []byte

ECB PKCS5Unpadding

func TripleDesDecrypt

func TripleDesDecrypt(mode TripleDesMode, data, key []byte) ([]byte, error)

func TripleDesEncrypt

func TripleDesEncrypt(mode TripleDesMode, data, key []byte) ([]byte, error)

func TripleEcbDesDecrypt

func TripleEcbDesDecrypt(crypted, key []byte) ([]byte, error)

[golang ECB 3DES Decrypt]

func TripleEcbDesEncrypt

func TripleEcbDesEncrypt(origData, key []byte) ([]byte, error)

[golang ECB 3DES Encrypt]

Types

type TripleDesMode

type TripleDesMode string
const (
	ECB TripleDesMode = "ECB"
)

Jump to

Keyboard shortcuts

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