public function createSalt($byte) { $generator = new SecureRandom(); return bin2hex($generator->nextBytes($byte)); }