· 7 years ago · Feb 06, 2018, 09:42 AM
1$cost = '06'; 2$secret_key = bin2hex(random_bytes(64); 3$store_data = crypt($secret_key), '$2a$.$cost.$'.bin2hex(random_bytes(16)).'$')