Add missing encrypt method