I am building my classes for development and am working on an encryption class. I have been reading up on php's crypt function and the different encryption types but a few areas have been vaguely explained.
my understanding is there are these encryption options CRYPT_STD_DES
, CRYPT_EXT_DES
, CRYPT_MD5
, CRYPT_BLOWFISH
, CRYPT_SHA256
, and CRYPT_SHA512
. to see if they are enabled you just check
if(CRYPT_FOO==1)
{
//is enabled
}
Questions
What are the salt requirements/format for the different encryption other than the. blowfish requirements which is on SO.
And just for clarification I assume if you use a blowfish salt with crypt()
it automatically does the blowfish encryption?