+ function __construct($settings) {
+ // *** constructor ***
+ if (array_key_exists('pwd_nonces', $settings)) {
+ $this->pwd_nonces = $settings['pwd_nonces'];
+ }
+ if (array_key_exists('pwd_cost', $settings)) {
+ $this->pwd_cost = $settings['pwd_cost'];
+ }
+ }
+
+ private $pwd_cost = 10;
+ private $pwd_nonces = array();