Hashing
Funções de hashing
Funções
Resultado
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract HashingExample {
// Função para calcular o hash de uma string
function calculateHash(string memory _input) public pure returns (bytes32) {
return keccak256(abi.encodePacked(_input));
}
}Last updated