exactly, thanks. unfortunately, it seems i can’t edit my previous post anymore, but thanks for clearing that up.
The workaround isn’t needed anymore, however, as newer versions of streamlit do support a password field: st.text_input("Password:", value="", type="password")