obbase64

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

*

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(s string) ([]byte, error)

Base64解码

func Base64Encode

func Base64Encode(data []byte) string

Base64编码

func Base64URLDecode

func Base64URLDecode(s string) ([]byte, error)

Base64URL解码

func Base64URLEncode

func Base64URLEncode(data []byte) string

Base64URL编码

func Decode

func Decode(key string, data string) ([]byte, error)

解码

func Encode

func Encode(key string, data []byte) (string, error)

编码

func GetRandKey

func GetRandKey() string

获得一个随机的key

func Md5Encode

func Md5Encode(str string) string

获取md5

func Sha1Encode

func Sha1Encode(str string) string

获取sha1

func Sha256Encode

func Sha256Encode(str string) string

获取sha256

Types

This section is empty.

Jump to

Keyboard shortcuts

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