Made setup generate the mcrypt key randomly

This commit is contained in:
jengo 2000-12-06 09:52:56 +00:00
parent b38edbd52f
commit 2e86e4415a

View File

@ -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