Cut off password in various file formats