cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[DOC]: Clarification of security document

Open BSarmady opened this issue 2 years ago • 0 comments

in issue templates there is no tag for documentation, so please add if necessary.

documentation at https://docs.phalcon.io/4.0/en/security mentions

"Getter and setter for the default hash that the component will use. By default the hash is set to CRYPT_DEFAULT (0). The available options are:"

I think it needs clarification that which one of these are used as default

  • CRYPT_BLOWFISH_A
  • CRYPT_BLOWFISH_X
  • CRYPT_BLOWFISH_Y
  • CRYPT_MD5
  • CRYPT_SHA256
  • CRYPT_SHA512
  • CRYPT_DEFAULT

Also mentioned

"In the above example, the setWorkFactor() sets the password hashing factor to 12 rounds."

What does it mean? Is it hashing the text 12 times?

BSarmady avatar May 05 '22 02:05 BSarmady