H
H
Historian1112018-09-15 18:43:57
PHP
Historian111, 2018-09-15 18:43:57

How to hash data with SHA256 in PHP?

Good evening. There was such a question, you need to hash the information in SHA256, but for the life of me, I can’t figure out how to do it .... I didn’t find information on the Internet, there are some SHA1, SHA2 .... I have never used it . Please help, I will be very grateful

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2018-09-15
@Historian111

php.net/manual/ru/function.hash.php

> echo hash('sha256', 'bla-bla-bla');
> e29256c37ac614866b41c51eb8bf013d2f0b208988a21016e0abf6e81fc99c58

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question