Zip encryption is vulnerable to known-plaintext attacks. Implementation quality also is an issue; WinZip's is particularly bad. No source, I'm afraid.
Are you trying to open a password-protected PDF or ZIP file? Then, you already know how frustrating it can be. You try out different tools, and the result is a ...