ask
ask

Reputation: 161

Replace a string of characters with some special characters?

when i input some texts/strings, i want them to appear either as hidden or with some special characters(as we do while entering password). . . how can i implement it in a python program? pls help me.

Upvotes: 1

Views: 306

Answers (2)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799570

You want the getpass module.

Upvotes: 0

amit kumar
amit kumar

Reputation: 21052

Use getpass

import getpass
getpass.getpass()

Upvotes: 4

Related Questions