mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Made setup generate the mcrypt key randomly
This commit is contained in:
parent
b38edbd52f
commit
2e86e4415a
@ -114,7 +114,18 @@
|
||||
$phpgw_info["server"]["config_passwd"] = "changeme";
|
||||
$phpgw_info["server"]["mcrypt_enabled"] = False;
|
||||
$phpgw_info["server"]["mcrypt_version"] = "2.6.3";
|
||||
$phpgw_info["server"]["mcrypt_iv"] = "cwjasud83l;la-0d.e/lc;[-%kl)ls,lf0;sa-;921kx;90flwl,skfcujd,wsodsp";
|
||||
|
||||
srand((double)microtime()*1000000);
|
||||
$random_char = array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f",
|
||||
"g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v",
|
||||
"w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L",
|
||||
"M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","/",";",
|
||||
",","%","$","!","@","#","^","&","*","(",")","-","_","+","=","|",
|
||||
"\\","[","]","{","}",";",":",'"',"'","<",">",".","?");
|
||||
|
||||
for ($i=0; $i<30; $i++) {
|
||||
$phpgw_info["server"]["mcrypt_iv"] .= $random_char[rand(1,count($random_char))];
|
||||
}
|
||||
}
|
||||
|
||||
// now guessing better settings then the default ones
|
||||
|
Loading…
Reference in New Issue
Block a user