Skip to content

donghquinn/go-crypto-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Crypto Utils

Maintainer: donghquinn

What is Crypto Util?

  • It's crypto utils written by golang.
  • It must be quite bothering creating secure keys, or encoding strings just for test.
    • In my case, I felt lots of bothersome every single moment I had to encode request bodies or fields for API Encryption/Decryption test with base64 and AES / SHA / Etc...
    • Plus, Generating Random String on MacOs has been removed. I loved this one.
  • This is a simple tool for generating keys or encoding strings

Build

  • Building Macos
    • Just build with the script I've uploaded when you are using macos
    • I'm using mac m2 apple silicon
  • Building Windows 64bit
    • Building Windows cross-platform on macos, You need to configure C Compilers
    • Follow this step; I've utilized homebrew to install mingw-w64, which is windows cross-compliers
    • Then set enviroment variables for cross-compilation
brew install mingw-w64
export GOOS=windows
export GOARCH=amd64
export CGO_ENABLED=1
export CC=x86_64-w64-mingw32-gcc

Provide

  • Encrypt Encryption

    • AES-CBC
    • AES-GCM
    • SHA-256 (Upcoming)
    • SHA-512 (Upcoming)
  • Decrypt Decryption

    • AES-CBC
    • AES-GCM
    • SHA-256 (Upcoming)
    • SHA-512 (Upcoming)
  • Encode Encode

    • Base64
    • Hex
  • Decode Decode

    • Base64
    • Hex
  • Generate AES Key Key Generation

  • Generate UUID UUID Generation

  • Generate Random String Random String