Simulate password generation/checking on client