got encryption working