In this chapter, we will return the hashing value of sha256.
They have different hashing algorithms like sha256, keccake256, and others.
Example:-
pragma solidity ^0.8.0;
contract Test {
string first = "Anurag";
function hashMethod() public view returns(bytes32) {
return sha256(abi.encodePacked(first));
}