How to unzip password protected .zip file using Terminal?

Solution 1:

Use the -P password argument to pass the password to unzip:

unzip -P password /Users/vikas/Desktop/as.zip -d /Users/vikas/Desktop/new\ folder

Solution 2:

In case of AES encryption unzip won't work. In such case 7z do the trick perfectly:

7z x <archive_name>

Solution 3:

you can use "Unarchiver" for it, works perfect.