klg/obfuscator

此包已 废弃 且不再维护。未建议替代包。

邮箱混淆器

dev-master 2016-06-25 13:10 UTC

This package is not auto-updated.

Last update: 2019-02-20 17:19:22 UTC


README

Email obfuscator for PHP.

Simplifies obfuscation of arbitrary UTF-8 strings in a way that
makes it easy to descramble them client-side using Javascript.
In order to force misbehaving harvesters to make additional request,
obfuscated data is actually encrypted with XXTEA block cipher and
only random seed is published together with it.  Encryption key is
securely derived from that seed and server's secret and it's revealed
on subsequent request. 

To simplify usage, klg/obfuscator also includes simple Twig extension
which provides "obfuscate" and "deobfuscate" filters as well as
"obfuscator.seed" and "obfuscator.key" variables.  The last one is
and array of 32-bit integers (128-bit) and shall never be sent along
the obfuscated data.

See examples directory for details.

This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See
http://sam.zoy.org/wtfpl/COPYING for more details.