Categorygithub.com/uiam-net/goutils
modulepackage
0.5.0
Repository: https://github.com/uiam-net/goutils.git
Documentation: pkg.go.dev

# README

go-cryptolib

一些常见加密算法封装

包括:

  • Hash - SHA1/SHA2/MD5/CSC32
  • 对称加密 - AES
  • 非对称加密 - RSA256/RSA512
  • 签名 - RSA-SHA1/RSA-SHA256/RSA-SHA512/ECC-ED25519

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Base64Decode Base64Decode.
Common Common.
DeepCopy DeepCopy.
DeepCopyByJSON DeepCopyByJSON.
DefaultString DefaultString.
GenCustomTimestamp GenCustomTimestamp.
GenRandomNumString GenRandomNumString.
GenRandomSixDigital GenRandomSixDigital.
GenRandomString GenRandomString.
IsDigitPresent IsDigitPresent.
IsDigitPresentUint64 IsDigitPresentUint64.
LocalCurrent LocalCurrent.
NewDateFromString NewDateFromString layout 2006-01-02.
NewDateFromYearMonthDay NewDateFromYearMonthDay.
NewDateUtc8FromYearMonthDay NewUtc8DateFromYearMonthDay.
OrderBizIDGen BIZIDGen 201907301746-544-0298.
OrderOriIDRestore OrderOriIDRestore order-2019080812282674502.
OrderShortBizIDGen BIZIDGen 1907301746-54-029.
OrderShortBizIDGenUint64 OrderShortBizIDGenUint64.
ParseBytesToInt 字节转换成整形.
ParseBytesToInt32 字节转换成整形.
ParseBytesToInt64 字节转换成整形.
ParseBytesToUint 字节转换成整形.
ParseBytesToUint32 字节转换成整形.
ParseBytesToUint64 字节转换成整形.
ParseInt32ToBytes 整形转换成字节.
ParseInt32ToStr ParseInt32ToStr.
ParseInt64ToBytes 整形转换成字节.
ParseInt64ToStr ParseInt64ToStr.
ParseIntToBytes 整形转换成字节.
ParseIntToStr ParseIntToStr.
ParseStrToInt ParseInt.
ParseStrToInt32 ParseStrToInt32.
ParseStrToInt64 ParseInt64.
ParseStrToUint ParseUint.
ParseStrToUint32 ParseUint.
ParseStrToUint64 ParseUint64.
ParseTimeNano ParseTimeNano.
ParseUint32ToBytes 整形转换成字节.
ParseUint32ToStr ParseUint32ToStr.
ParseUint64ToBytes 整形转换成字节.
ParseUint64ToStr ParseUint64ToStr.
ParseUintToBytes 整形转换成字节.
ParseUintToStr ParseUintToStr.
SplitPhone SplitPhone +8615618297195",.
Time0 取任一时间对应的 0 点.
TimeFormatDate 截断日期输出.
TimeFormatDateTime 截断日期输出.
TimeFormatWithLayout TimeFormatWithLayout.
Utc0Current 取当前时间的 UTC0.
Utc0Time 取时间的 UTC0.
Utc8Current 取当前时间的 UTC8.
Utc8Day 当前服务器时间的东八区指定天数日期 服务器时区不重要,统一换算为东八区 再向前取一天.
Utc8Day0 把任一时间,换算成东八区0点.
Utc8DayString 当前服务器时间的东八区昨天日期 服务器时区不重要,统一换算为东八区 再向前取一天.
Utc8DuctionDays 一个日期和另一个日期相差多少天 要都在东八区算 两边都要先算成 0点,因为两边都算整天的.
Utc8Lastday 当前服务器时间的东八区昨天日期 服务器时区不重要,统一换算为东八区 再向前取一天.
Utc8LastdayString 当前服务器时间的东八区昨天日期 服务器时区不重要,统一换算为东八区 再向前取一天.
Utc8Time 取时间的 UTC8.
Utc8Today 东八区今天日期.
Utc8TodayString 东八区今天日期.
UUIDGenFromString 使用字符串生成固定的 UUID.
UUIDHexGenFromString 使用字符串生成固定的 UUID.
UUIDParseFromString UUIDParseFromString.
UUIDStringGen UUIDStringGen b9be9a09-7117-4bdb-9c6d-737269c86480.
UUIDStringGenFromString 使用字符串生成固定的 UUID.
UUIDV1HexGen UUIDV1HexGen 5106b5e58ee44f74a5d49e779dcf7f57.
UUIDV1StringGen UUIDV1StringGen b9be9a09-7117-4bdb-9c6d-737269c86480.
UUIDV4HexGen UUIDV4HexGen 5106b5e58ee44f74a5d49e779dcf7f57.
UUIDV4StringGen UUIDV4StringGen b9be9a09-7117-4bdb-9c6d-737269c86480.