1
我想知道是否有人提出了類似的東西?壓縮和解壓縮在PHP和JS
的方式來壓縮文本:
<?php
$str = 'Hello world!';// the text here can be any characters long
$key = compress($str);// should return a key 32characters long/ or a fixed number of characters
$value = decompress($key);// should return "Hello World!"
?>
使用MD5是單向加密/壓縮, 基本上我想類似MD5是可逆式。不必要的MD5它自己。
但請記住,如果可能的話,HTTP將在兩端協商並壓縮數據。 – symcbean 2010-01-29 17:20:56
我同意。如果可能,讓類似php的ob_gzhandler或更好的mod \ _deflate處理透明的壓縮。 – VolkerK 2010-01-29 17:47:29