create encrypt method