Questions: whiptail --passwordbox

I have a question regarding "whiptail utility" in Linux.
I have the following whiptail command within a script:

#!/bin/sh
whiptail --passwordbox " Password " 10 40 

I would like to know Where does it store the password when the script is run?

Does it go to any particular file? How does it store the password and where?

Kindly reply,

Thank you

From whiptail's manual page:

--output-fd fd
    Direct output to the given file descriptor. Most whiptail scripts write to
    standard error, but error messages may also be written there, depending
    on your script. 

So it goes to stderr unless you tell it otherwise. It doesn't take a file name, just a file number.

If you're dealing with passwords, you probably don't want to write it to a file at all, and just pass it through pipes into your own script.