encryption class with phpunit tests.

Signed-off-by: Sebastian Brosch <sebastian.brosch@brosch-software.de>