2

devised moved the encryptable module to a different gem. However, they state that Bcrypt already uses a salt by default. I'm a bit confused. Without adding :encryptable to my models, are they salted?

CamelCamelCamel
  • 5,200
  • 8
  • 61
  • 93

1 Answers1

4

:encryptable is used for encryption methods other than the default. The default encryption method bcrypt is salted. It is an interface which Devise can use so that you can also define other encryption methods.

See How can bcrypt have built-in salts? for details of the salt and how it is stored.

Community
  • 1
  • 1
ronalchn
  • 12,225
  • 10
  • 51
  • 61