encrypt bug