add encrypt decrypt function to wallet