This project is a web application that allows users to encrypt and decrypt text using various SHA algorithms. The application is built with a Go backend and a simple HTML/CSS frontend.
- Encrypt text using SHA-256, SHA-384, and SHA-512 algorithms
- Decrypt text by looking up the original text from a list of previously encrypted values
- Maintain a history of encrypted/decrypted values
- Simple and clean user interface
- Go 1.22+
- PostgreSQL 16
- A web browser
- Clone the repository:
git clone https://github.com/Saracomethstein/encryption.git
cd encryption- Run the Go application:
make runThe application will start on http://localhost:8000.
- Open the application in your web browser.
- Select the encryption function (
Encrypt) by clicking the corresponding button. - Select the SHA algorithm (SHA-256, SHA-384, or SHA-512) by clicking the corresponding button.
- Enter the text you want to encrypt in the
inputfield. - Click the
STARTbutton. - The encrypted text will appear in the
outputfield and will be added to the history table.
- Open the application in your web browser.
- Select the decryption function (
Decrypt) by clicking the corresponding button. - Enter the SHA value you want to decrypt in the
inputfield. - Click the
STARTbutton. - If the SHA value exists in the history, the original text will appear in the
outputfield and will be added to the history table. If the SHA value does not exist, a message indicating the absence of the key will be shown.
encryption/
├── app/ # Main Go application
│ └── server.go
├── database/ # Database connection and commands
│ └── dbConnection.go
├── encrypt/ # Encryption logic
│ └── encrypt.go
├── materials/ # Database dump
│ └── dbScrypt.sql
└── ui/ # Frontend files
├── index.html
├── style.css
└── script.js
- Fork the repository.
- Create a new branch:
git checkout -b your-feature-branch. - Make your changes and commit them:
git commit -m 'Add some feature'. - Push to the branch:
git push origin your-feature-branch. - Submit a pull request.
For any questions or suggestions, please open an issue or contact Saracomethstein.