iridium

package module
v0.0.0-...-a2c265a Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: BSD-3-Clause Imports: 11 Imported by: 1

README

Iridium

Tools to Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecryptWithCFB

func AESDecryptWithCFB(secret, key string) (plain string, err error)

AESDecryptWithCFB decrypt hex string with AES CFB mode

func AESEncryptWithCFB

func AESEncryptWithCFB(plain, key string) (secret string, err error)

AESEncryptWithCFB encrypt string with AES CFB mode, output hex string

func RandomFloat

func RandomFloat(precision int) (f float64, err error)

RandomFloat return a random float with given precision, the integer of float will be 0.

func RandomInt

func RandomInt(min, max int) (n int, err error)

RandomInt return a pseudorandom int between min and max

func RandomString

func RandomString(length int) string

RandomString return a random string with given length that only contains lower/upper letters

Types

This section is empty.

Jump to

Keyboard shortcuts

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