It's in the FAQ, How do I ask the user for a password?.
In reply to Re: Password Entry using Core modules only? by marto in thread Password Entry using Core modules only? by raybies