Is this function safe?
Moderator: General Moderators
Is this function safe?
Is the crypt() function safe? If so, how do i use it? If not, any better?
Re: Is this function safe?
"Safety" is not a concept that is applicable to functions, rather to their usage. There is no inherent safety or unsafety in a function, only when it's used. Show code.
Re: Is this function safe?
Okay, the code, using the CRYPT_STD_DES version goes like this:
Then I store this password into the database. How safe is it?
Code: Select all
<?php
$mypassword = crypt('mypasswordhere' , 'd4');
?>