encode pwd