fix crypt using dict in file