Welcome to Android Central! What do you mean by "lock and mask app"? Is this a 3rd party app locker app, or the native Private Mode?
In general, you can't recover passwords. You typically have to do a factory reset if you want to set a new Private Mode password.