Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how validate hash string in laravel

 $hash = '$2y$10$ug8B6Pxs546eQBNICxsEOOH3NgpXjOIo.g4rf1FPZk2xJncWcFUpu';

 if( strlen($hash) == 60 && preg_match('/^$2y$/', $hash ))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #validate #hash #string #laravel
ADD COMMENT
Topic
Name
8+9 =