Coder Social home page Coder Social logo

sahil-4555 / secure_hash_algorithm-sha1 Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 36 KB

SHA-1 is a widely used cryptographic hash function that generates a 160-bit hash value. It is commonly used for data integrity verification and digital signatures.

Go 100.00%
algorithms cryptography encryption golang hash hash-encryption hashing sha-1-hash

secure_hash_algorithm-sha1's Introduction

Hash Encryption

Hash Encryption is a Go package that implements a secure hash algorithm for encrypting data and generating a message digest. The package provides a simple and efficient way to secure sensitive information and ensure data integrity.

Features

  • Generates a 160-bit message digest for input data.
  • Generates 40 digits hexadecimal code of password
  • Implements a secure hash algorithm for encryption.
  • Supports encryption of various data types.

SHA-1_state_model

Functionality

Hash Encryption provides the following functionality:

  • Encryption of messages, passwords, or any other sensitive data
  • Support for popular hash encryption algorithms such as MD5, SHA-1, SHA-256, etc.
  • Customizable options for adjusting encryption parameters
  • Protection against unauthorized access and data tampering

Go Implementation

Run The main.go file Using Command:

go run main.go

Output

SHA1_GO_IMPLEMENTATION

Installation

To use Hash Encryption in your Go project, you need to have Go programming language installed. Then, follow these steps:

  • Install the package using the go get command:
go get github.com/Sahil-4555/Secure_Hash_Algorithm-SHA1
  • Import the package in your Go code:
import "github.com/Sahil-4555/Secure_Hash_Algorithm-SHA1"

Usage

To encrypt data and generate a message digest, follow these steps:

  • Invoke the Encrypt function, passing your input data as an argument:
encryptedData := hashencryption.Encrypt("input data")
  • Use the encryptedData as desired in your application. Here's an example of encrypting a string using the Hash Encryption package:
package main

import (
	"fmt"
	"github.com/Sahil-4555/Secure_Hash_Algorithm-SHA1"
)

func main() {
	encryptedData := hashencryption.Encrypt("Hello, World!")
	fmt.Println("Encrypted Data:", encryptedData)
}

This will output the encrypted message digest for the input data.

secure_hash_algorithm-sha1's People

Contributors

sahil-4555 avatar

Stargazers

Utsav Desai avatar Matalia Jeet C. avatar  avatar Jimmy Ramani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.