Skip to content

kyberorg-lab/go-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github.com/kyberorg/go-utils

Useful Go Utilities

AES GCM (package github.com/kyberorg/go-utils/aesgcm)

  • func Encrypt(plainText, sharedKey []byte) ([]byte, error)

  • func EncryptString(plainTextData, sharedKey string) (string, error)

  • func Decrypt(encryptedData, sharedKey []byte) ([]byte, error)

  • func DecryptString(encryptedData, sharedKey string) (string, error)

Inspired by (ITNEXT)[https://itnext.io/encrypt-data-with-a-password-in-go-b5366384e291?gi=c4b2d7a25be9]

OS Utils (github.com/kyberorg/go-utils/osutils)

  • func GetEnv(envKey string, defaultValue string) (string, bool)

Releases

No releases published

Packages

No packages published

Languages