mycrypto

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mycrypto 实现兼容平台的加密解密.

加密:

src := "hello"
key := "5qHIk7yMbGu29SFA61234567"
iv := "Xoji5qa9"

data := TripleDesEncrypt(src, key, iv)

解密:

src := "iQv3u6hIj9c="
key := "5qHIk7yMbGu29SFA61234567"
iv := "Xoji5qa9"

data, err := TripleDesDecrypt(src, key, iv)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TripleDesDecrypt

func TripleDesDecrypt(src, key, iv string) (string, error)

TripleDesDecrypt 解密

func TripleDesEncrypt

func TripleDesEncrypt(original, key, iv string) string

TripleDesEncrypt 加密

Types

This section is empty.

Jump to

Keyboard shortcuts

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