Soyal uses a combination of encryption algorithms and password hashing to protect ZIP files. When a user sets a password for a ZIP file, Soyal uses a password hashing algorithm to convert the password into a fixed-length string of characters. This hashed password is then stored in the ZIP file.