diff --git a/setup/createheader.php b/setup/createheader.php index c7ce25acba..dd49eab0d9 100644 --- a/setup/createheader.php +++ b/setup/createheader.php @@ -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