Skip to content

hunain-imran/SHA256-PHP-IMPLEMENTATION

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

SHA-256 Implementation in PHP

This repository contains a PHP implementation of the SHA-256 hashing algorithm. SHA-256 is a widely used cryptographic hash function that produces a 256-bit (32-byte) hash value. It is commonly used in various security applications and protocols, including Bitcoin.

Usage

To compute the SHA-256 hash of a message, simply call the generate_hash function with the message as input. For example:

echo bin2hex(generate_hash("Hello")); // Output: 185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969

About

PHP implementation for Sha256 algorithm from scratch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages