Password Type Field in Lightning Component

Sample Lightning Component:

<!--Sample.cmp-->
<aura:component >
    <ui:inputSecret aura:id="pwd" label="Password " class="field" value="" maxlength="10" placeholder="Password" required="false"/>
</aura:component>

Output: