php ile şu şekilde yapabilirsin
$password = str_repeat("*", strlen($password));Kaynak:
https://stackoverflow.com/questions/...68871#25968871
Bir de javascript alternatifi vereyim
var word = "Chowder"; // Normally dynamic but for this sake, static.
word = word.replace(/./g, "*");
// To test
console.log(word);
// Output: *******
Kaynak:
https://css-tricks.com/forums/topic/...th-an-asterisk