Update algorithm.java encryption should work 100%