Another nice collection of free tileable patterns: http://tileabl.es/
30 karma · joined February 18, 2010
That's why PHP provides the openssl_seal function can do exactly the same (and more) as the given code. (http://php.net/manual/en/function.openssl-seal.php)
When you Google for it there are also implementations for other languages available.