go-encrypto

module
v0.0.0-...-87d8f77 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT

README ΒΆ

go-encrypto logo

Encrypto Go Package

Go Reference Go Version Size Last Commit License

GoReportCard CodeFactor Codacy Badge codecov

Build lint CodeQL


🌟 How it works

This package encrypts and decrypts a file using a password provided.

πŸ“¦ Installation and Usage

Go

Make sure you have Go installed on your machine.

You can check by running the following command in the console

go version

If you don't have Go installed, you can download it from here.

Add to your project

Run the following command in the console, in the project directory, to install the library with go get

go get github.com/ggoodwin/go-encrypto

Importing

Add the import to your .go file

import encrypto "github.com/ggoodwin/go-encrypto"

πŸ’° Usage

Check if the Market is Open at Current Time

// Encrypt File
// Parameters: key byte[], inputFile string, outputFile string
error := encrypto.encryptFile(key, inputFile, outputFile)
if error != nil {
    panic(error)
}

// Decrypt File
// Parameters: key byte[], inputFile string, outputFile string
error := encrypto.decryptFile(key, inputFile, outputFile)
if error != nil {
    panic(error)
}

πŸ’» Dependencies

πŸ™‡β€β™‚οΈ Issues and Contributing

If you find an issue with this library, please report the issue using our GITHUB-ISSUES or check out the SECURITY details if it is security related.

If you'd like, I welcome any contributions. Please read the CONTRIBUTING document then FORK this library and submit a PULL-REQUEST. Make sure to click compare across forks to see your fork.

βš–οΈ License

This project is under the MIT License. See the LICENSE file for the full license text.

πŸ“œ Changes

Check out our CHANGELOG

πŸ‘πŸ» Code of Conduct

Please read my CODE-OF-CONDUCT before contributing or engaging in discussions.

Directories ΒΆ

Path Synopsis

Jump to

Keyboard shortcuts

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