full crypt open and close