Skip to content

SoegiDev/Encryptor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encryption and Decrytion Password

Features

  • Create Encryption (AES)
  • Create Decryption (AES)

Install

First get Encryption

go get github.com/SoegiDev/Encryptor

Usage

SampleSecret_32Bit := "mypasswordstrong32bitpasswordgoh"

SampleSecret_24Bit := "mypasswordstrong24bitpas"

SampleSecret_16Bit := "pass16bitstrong!"

initiate Encryption

encryption :=  Encryption.New(SampleSecret_32Bit)

Get EncryptPassword

Password := "PasswordString"
encryptPassword, _ := encryption.EncryptPassword(Password)

Get DecryptPassword

decryptPassword, _ := encryption.DecryptPassword(encryptPassword)