Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,892 questions

51,823 answers

573 users

How to generate a hash value in PHP

2 Answers

0 votes
$str = 'php c c++ java';
   
$hash = hash('ripemd160', $str);
   
echo $hash;
    


       
/*
run:
            
ec0c85168118039e46de268c668ef8a32f052d33
     
*/

 



answered Oct 12, 2019 by avibootz
edited Sep 26, 2023 by avibootz
0 votes
$str = "php 9 c 17 c++ 20 java 21 ada 2012";
 
$hash = hash('sha256', $str);
 
echo $hash;
 
 
 

 
/*
run:
 
0b17f957175d7827857143984e08e17c3337dde166ad2c86e9dc4a05283b0517
 
*/

 



answered Sep 25, 2023 by avibootz
edited Sep 26, 2023 by avibootz

Related questions

1 answer 161 views
2 answers 232 views
1 answer 180 views
1 answer 167 views
167 views asked Jul 19, 2016 by avibootz
...