got encrypt working