log method in encrypt unit test