password icon

password from css.gg by Astrit · Outline · MIT Free for personal and commercial use.

Name
password
Set
css.gg
Style
Outline
Viewbox
24×24
License
MIT

The same icon in other sets

Use the password icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="currentColor"><path d="M6 12a1 1 0 1 1-2 0a1 1 0 0 1 2 0m3 1a1 1 0 1 0 0-2a1 1 0 0 0 0 2m5-1a1 1 0 1 1-2 0a1 1 0 0 1 2 0m6-1h-4v2h4z"/><path fill-rule="evenodd" d="M2 6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm20 2H2v8h20z" clip-rule="evenodd"/></g></svg>

React

import type { SVGProps } from "react";

export function GgPassword(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="currentColor"><path d="M6 12a1 1 0 1 1-2 0a1 1 0 0 1 2 0m3 1a1 1 0 1 0 0-2a1 1 0 0 0 0 2m5-1a1 1 0 1 1-2 0a1 1 0 0 1 2 0m6-1h-4v2h4z"/><path fillRule="evenodd" d="M2 6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm20 2H2v8h20z" clipRule="evenodd"/></g></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="currentColor"><path d="M6 12a1 1 0 1 1-2 0a1 1 0 0 1 2 0m3 1a1 1 0 1 0 0-2a1 1 0 0 0 0 2m5-1a1 1 0 1 1-2 0a1 1 0 0 1 2 0m6-1h-4v2h4z"/><path fill-rule="evenodd" d="M2 6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm20 2H2v8h20z" clip-rule="evenodd"/></g></svg>
</template>

CSS

.icon-password {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22currentColor%22%3E%3Cpath%20d%3D%22M6%2012a1%201%200%201%201-2%200a1%201%200%200%201%202%200m3%201a1%201%200%201%200%200-2a1%201%200%200%200%200%202m5-1a1%201%200%201%201-2%200a1%201%200%200%201%202%200m6-1h-4v2h4z%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M2%206a2%202%200%200%200-2%202v8a2%202%200%200%200%202%202h20a2%202%200%200%200%202-2V8a2%202%200%200%200-2-2zm20%202H2v8h20z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22currentColor%22%3E%3Cpath%20d%3D%22M6%2012a1%201%200%201%201-2%200a1%201%200%200%201%202%200m3%201a1%201%200%201%200%200-2a1%201%200%200%200%200%202m5-1a1%201%200%201%201-2%200a1%201%200%200%201%202%200m6-1h-4v2h4z%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20d%3D%22M2%206a2%202%200%200%200-2%202v8a2%202%200%200%200%202%202h20a2%202%200%200%200%202-2V8a2%202%200%200%200-2-2zm20%202H2v8h20z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/gg/password.svg?color=%231a73e8&size=48