Documentation ΒΆ
Index ΒΆ
- Constants
- func DateFormat(t time.Time, layout string) string
- func Decrypt(cryptKey string, cipherText []byte) ([]byte, error)
- func DecryptString(cryptKey string, text string) (string, error)
- func DetectCardType(number string) string
- func Encrypt(cryptKey string, plainText []byte) ([]byte, error)
- func EncryptString(cryptKey string, text string) (string, error)
- func PackBeacon(x, y int, minorBit uint) (int, int)
- func Sha1Sum(s string) string
- func Sha256Sum224(s string) string
- func Sha256Sum256(s string) string
- func Sha512Sum384(s string) string
- func Sha512Sum512(s string) string
- func UnpackBeacon(x, y int, minorBit uint) (int, int)
- type Random
Constants ΒΆ
View Source
const ( Visa = "visa" Master = "master" Amex = "amex" Diners = "diners" Discover = "discover" JCB = "jcb" Other = "other" )
Type Const ...
View Source
const (
BitTotal = 32
)
Beacon Bit
Variables ΒΆ
This section is empty.
Functions ΒΆ
func DecryptString ΒΆ
DecryptString ...
func EncryptString ΒΆ
EncryptString ...
func PackBeacon ΒΆ
PackIBeacon is pack major, minor values params x, y is sequence value (24bit, 8bit) returns major, minor is real beacon value (16bit, 16bit)
Types ΒΆ
Click to show internal directories.
Click to hide internal directories.