fixed encrypt