tools

package module
v0.0.0-...-71362ee Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 7 Imported by: 0

README

Table of Contents generated with DocToc

tools

通用包

$ tree     
.
├── LICENSE
├── README.md
├── aes.go
├── aes_test.go
├── base62.go
├── base62_test.go
├── go.mod
├── go.sum
├── md5sum.go
└── md5sum_test.go

acknowledgement

  • github.com/forgoer/openssl

Documentation

Index

Constants

View Source
const Base = 62
View Source
const CharacterSet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"

CharacterSet consists of 62 characters [0-9][A-Z][a-z].

Variables

This section is empty.

Functions

func Md5Sum

func Md5Sum(value string) string

func Md5SumByte

func Md5SumByte(value []byte) string

Types

type AESCrypto

type AESCrypto struct {
	Key []byte
}

func (*AESCrypto) Decrypt

func (a *AESCrypto) Decrypt(src string) (string, error)

func (*AESCrypto) Encrypt

func (a *AESCrypto) Encrypt(src []byte) (string, error)

type Base62

type Base62 struct {
}

func (*Base62) Decode

func (*Base62) Decode(s string) (uint32, error)

Decode returns a integer number of a base62 encoded string.

func (*Base62) Encode

func (*Base62) Encode(num uint32) string

Encode returns a base62 representation as string of the given integer number.

Jump to

Keyboard shortcuts

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