Twofish password encryption in Silverstripe?

308 Views Asked by At

is there a way how to use Twofish algorithm to hash passwords in Silverstripe? It doesn't look that it's natively supported.

There is a way how to extend PasswordEncryptor probably.

Thanks!

2

There are 2 best solutions below

0
On BEST ANSWER

At the moment the default is Blowfish.

Up until version 3.0 you could add your own algorithms via register(). Since 3.1 you will need to use the (YAML based) configuration system.

0
On

Exactly as you said - extend the PasswordEncryptor class and register() it in _config.php or config.yml