Filling up encrypt and decode methods