refactoring
[java] add a simple test for symmetric encryption
cryptofunc (js): add symmetric encryption