I tried many software to extract and compress the data. On Mac when rar or zip is password protected then the most of the well known software are not able to extract it.
By Googling I came across a amazing software which can help you also that why I wanted to share with you people.
Keka - the macOS file archiver is the best in the world . You may download it from this link
There is option of direct download but if you want it from App Store then you have to pay for it.
Whenever I come across new things I like to share with all . Thats all for today see you soon.