I'm not an expert but with the password the information is there, it's like a safe that can be violated. With encryption information is not there in the same way, what you have is like a map. In addition encryption is usually more difficult to brake than passwords.
Discussion
thanks. what software do you offer for that?
You may want to try Cryptomator. It can be used locally on your hard drive or even for cloud data encryption.
https://docs.cryptomator.org/en/latest/desktop/getting-started/