SHA Encryption

Here is an SHA (Secure Hash Algorithm) online generator that generates SHA hashes SHA-256, SHA-512).

The SHA-256 function is an inbuilt PHP function which is used to convert string into encrypted format. It stands for Secure Hash Algorithms. This function takes string and returns a fixed-size of string of 256-bit(32 byte).

About SHA-256

SHA-256 returns a 256-bit (32 bytes) hash value. It is represented as a hexadecimal number of 64 digits. SHA-256 is NOT reversible. This function is used as one-way method.

Using SHA-256 on text data of 100,000 characters, we get 64 digits. Now if we wanted to decode this then how could it possible to determine which 100,000 characters were used from just 64 digits?


The syntax for the sha-256 is following.

SHA256 Encoded Syntax


  • sha256: Required. It specifies the function.
  • data: Required. It specifies the data to be encode.


Let's see the following example for MD5 Encryption

SHA256 Encoded Example

The above example will give output

SHA256 Encoded Output