string ReversableCrypt(
string
$this->value)
|
|
Reversable crypt function
This function is used to crypt datas that must be read by the server by the future, like backups. THIS FUNCTION DOES NOT USE STRpasswords::cryptkey . It create a key with STRpasswords::makeRandom() Result is returned
<?php
$oPasswords->value =
$tobecrypted_string;
// [cryptedstring]
?>
Tags:
Parameters:
int Strength(
string
$this->value)
|
|
Password strength calculation function
This function is used to measure strength of passwords. Javascript source: http://www.geekwisdom.com/dyn/passwdmeter Result is stored in $this->strength and returned
Password Strength Factors and Weightings
password length: 18 points level 0 (3 point): less than 4 characters level 1 (6 points): between 5 and 7 characters level 2 (12 points): between 8 and 15 characters level 3 (18 points): 16 or more characters
letters: 6 points level 0 (0 points): no letters level 1 (1 points): all letters are lower case level 2 (6 points): letters are mixed case
numbers: 10 points level 0 (0 points): no numbers exist level 1 (5 points): one number exists level 2 (10 points): 3 or more numbers exists
special characters: 10 points level 0 (0 points): no special characters level 1 (5 points): one special character exists level 2 (10 points): more than one special character exists
combinatons: 6 points level 1 (2 points): mixed case letters level 2 (2 points): letters and numbers level 3 (2 points): mixed case letters, numbers and special characters exist
total: 50 points
<?php
$oPasswords->value =
"mypassword";
// 13
?>
Tags:
Parameters: