password encrypt machine unit test