draft crypt util