A password hook allows you to select between various password encryption options. Supported algorithms are md5 < OSSN v5.x, bcrypt, argon2i. Default is bcrypt.
~~~
<?php
function my_component_init(){
ossn_add_hook('user', 'password:algorithm', 'my_component_hook');
}
function my_component_hook($hook, $type, $return, $params){
return 'argon2i';
}
ossn_register_callback('ossn', 'init', 'my_component_init');
~~~