code cleanup & cosmetics
some simple encryption tests