gentleface

Gentleface › Security & privacy › key-code

key-code icon

Key code: api key, developer key, access token, api token. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated key-code-type · line-round

The brackets close into their points and the key closes where they had cut it. A caret blinks where the code goes, the left bracket opens, then the right, cutting the key again, and the caret goes out. The key answers: it turns on its bow, holds and turns back.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.2 s to 2.75 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M2.561 11.146C2.381 11.326 2.243 11.533 2.146 11.767C2.049 12.002 2 12.246 2 12.5L2 14L3.793 14C4.126 14 4.411 13.882 4.646 13.646C4.882 13.411 5 13.126 5 12.793L5 11.5C5 11.359 5.048 11.241 5.144 11.144C5.241 11.048 5.359 11 5.5 11L6.5 11C6.641 11 6.759 11.048 6.856 11.144C6.952 11.241 7 11.359 7 11.5C7 11.641 6.952 11.759 6.856 11.856C6.759 11.952 6.641 12 6.5 12L6 12L6 12.793C6 13.086 5.944 13.367 5.832 13.638C5.72 13.908 5.561 14.147 5.354 14.354C5.147 14.561 4.908 14.72 4.638 14.832C4.367 14.944 4.086 15 3.793 15L1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5L1 12.5C1 12.114 1.074 11.742 1.222 11.385C1.37 11.028 1.58 10.713 1.854 10.439L6.06 6.233C5.978 5.742 5.979 5.248 6.063 4.752C6.171 4.106 6.41 3.513 6.778 2.971C7.146 2.43 7.61 1.989 8.17 1.65C8.681 1.341 9.232 1.141 9.823 1.051C10.414 0.961 11 0.988 11.58 1.132C12.216 1.289 12.79 1.571 13.302 1.979C13.815 2.387 14.219 2.883 14.514 3.467C14.785 4 14.942 4.565 14.987 5.161C15.045 5.929 14.915 6.664 14.595 7.365C14.276 8.067 13.807 8.647 13.189 9.108C13.174 9.119 13.159 9.129 13.144 9.139C12.948 9.044 12.733 8.997 12.5 8.997L12.483 8.997C12.406 8.889 12.376 8.768 12.396 8.635C12.416 8.498 12.481 8.389 12.592 8.306C13.072 7.948 13.437 7.496 13.685 6.951C13.934 6.405 14.035 5.834 13.99 5.236C13.955 4.772 13.832 4.333 13.622 3.919C13.392 3.464 13.078 3.079 12.679 2.761C12.281 2.444 11.835 2.225 11.34 2.102C10.889 1.991 10.433 1.97 9.974 2.04C9.514 2.11 9.085 2.265 8.688 2.506C8.252 2.77 7.891 3.112 7.605 3.533C7.319 3.954 7.133 4.416 7.049 4.918C6.971 5.377 6.985 5.833 7.089 6.286C7.109 6.37 7.107 6.454 7.083 6.536C7.06 6.618 7.017 6.69 6.956 6.751L2.561 11.146ZM11.207 4.793C11.402 4.988 11.5 5.224 11.5 5.5C11.5 5.776 11.402 6.012 11.207 6.207C11.012 6.402 10.776 6.5 10.5 6.5C10.224 6.5 9.988 6.402 9.793 6.207C9.598 6.012 9.5 5.776 9.5 5.5C9.5 5.224 9.598 4.988 9.793 4.793C9.988 4.598 10.224 4.5 10.5 4.5C10.776 4.5 11.012 4.598 11.207 4.793ZM10.854 14.854C10.754 14.953 10.636 15.003 10.5 15.003C10.364 15.003 10.246 14.953 10.146 14.854L8.146 12.854C8.047 12.754 7.997 12.636 7.997 12.5C7.997 12.364 8.047 12.246 8.146 12.146L10.146 10.146C10.246 10.047 10.364 9.997 10.5 9.997C10.636 9.997 10.754 10.047 10.854 10.146C10.953 10.246 11.003 10.364 11.003 10.5C11.003 10.636 10.953 10.754 10.854 10.854L9.207 12.5L10.854 14.146C10.953 14.246 11.003 14.364 11.003 14.5C11.003 14.636 10.953 14.754 10.854 14.854ZM14.854 12.854L12.854 14.854C12.754 14.953 12.636 15.003 12.5 15.003C12.364 15.003 12.246 14.953 12.146 14.854C12.047 14.754 11.997 14.636 11.997 14.5C11.997 14.364 12.047 14.246 12.146 14.146L13.793 12.5L12.146 10.854C12.047 10.754 11.997 10.636 11.997 10.5C11.997 10.364 12.047 10.246 12.146 10.146C12.246 10.047 12.364 9.997 12.5 9.997C12.636 9.997 12.754 10.047 12.854 10.146L14.854 12.146C14.953 12.246 15.003 12.364 15.003 12.5C15.003 12.636 14.953 12.754 14.854 12.854Z"/></svg>
React
// Gentleface "key-code" (line-round), MIT. https://gentleface.com/icons/key-code
import type { SVGProps } from 'react';

export function KeyCodeIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M2.561 11.146C2.381 11.326 2.243 11.533 2.146 11.767C2.049 12.002 2 12.246 2 12.5L2 14L3.793 14C4.126 14 4.411 13.882 4.646 13.646C4.882 13.411 5 13.126 5 12.793L5 11.5C5 11.359 5.048 11.241 5.144 11.144C5.241 11.048 5.359 11 5.5 11L6.5 11C6.641 11 6.759 11.048 6.856 11.144C6.952 11.241 7 11.359 7 11.5C7 11.641 6.952 11.759 6.856 11.856C6.759 11.952 6.641 12 6.5 12L6 12L6 12.793C6 13.086 5.944 13.367 5.832 13.638C5.72 13.908 5.561 14.147 5.354 14.354C5.147 14.561 4.908 14.72 4.638 14.832C4.367 14.944 4.086 15 3.793 15L1.5 15C1.359 15 1.241 14.952 1.144 14.856C1.048 14.759 1 14.641 1 14.5L1 12.5C1 12.114 1.074 11.742 1.222 11.385C1.37 11.028 1.58 10.713 1.854 10.439L6.06 6.233C5.978 5.742 5.979 5.248 6.063 4.752C6.171 4.106 6.41 3.513 6.778 2.971C7.146 2.43 7.61 1.989 8.17 1.65C8.681 1.341 9.232 1.141 9.823 1.051C10.414 0.961 11 0.988 11.58 1.132C12.216 1.289 12.79 1.571 13.302 1.979C13.815 2.387 14.219 2.883 14.514 3.467C14.785 4 14.942 4.565 14.987 5.161C15.045 5.929 14.915 6.664 14.595 7.365C14.276 8.067 13.807 8.647 13.189 9.108C13.174 9.119 13.159 9.129 13.144 9.139C12.948 9.044 12.733 8.997 12.5 8.997L12.483 8.997C12.406 8.889 12.376 8.768 12.396 8.635C12.416 8.498 12.481 8.389 12.592 8.306C13.072 7.948 13.437 7.496 13.685 6.951C13.934 6.405 14.035 5.834 13.99 5.236C13.955 4.772 13.832 4.333 13.622 3.919C13.392 3.464 13.078 3.079 12.679 2.761C12.281 2.444 11.835 2.225 11.34 2.102C10.889 1.991 10.433 1.97 9.974 2.04C9.514 2.11 9.085 2.265 8.688 2.506C8.252 2.77 7.891 3.112 7.605 3.533C7.319 3.954 7.133 4.416 7.049 4.918C6.971 5.377 6.985 5.833 7.089 6.286C7.109 6.37 7.107 6.454 7.083 6.536C7.06 6.618 7.017 6.69 6.956 6.751L2.561 11.146ZM11.207 4.793C11.402 4.988 11.5 5.224 11.5 5.5C11.5 5.776 11.402 6.012 11.207 6.207C11.012 6.402 10.776 6.5 10.5 6.5C10.224 6.5 9.988 6.402 9.793 6.207C9.598 6.012 9.5 5.776 9.5 5.5C9.5 5.224 9.598 4.988 9.793 4.793C9.988 4.598 10.224 4.5 10.5 4.5C10.776 4.5 11.012 4.598 11.207 4.793ZM10.854 14.854C10.754 14.953 10.636 15.003 10.5 15.003C10.364 15.003 10.246 14.953 10.146 14.854L8.146 12.854C8.047 12.754 7.997 12.636 7.997 12.5C7.997 12.364 8.047 12.246 8.146 12.146L10.146 10.146C10.246 10.047 10.364 9.997 10.5 9.997C10.636 9.997 10.754 10.047 10.854 10.146C10.953 10.246 11.003 10.364 11.003 10.5C11.003 10.636 10.953 10.754 10.854 10.854L9.207 12.5L10.854 14.146C10.953 14.246 11.003 14.364 11.003 14.5C11.003 14.636 10.953 14.754 10.854 14.854ZM14.854 12.854L12.854 14.854C12.754 14.953 12.636 15.003 12.5 15.003C12.364 15.003 12.246 14.953 12.146 14.854C12.047 14.754 11.997 14.636 11.997 14.5C11.997 14.364 12.047 14.246 12.146 14.146L13.793 12.5L12.146 10.854C12.047 10.754 11.997 10.636 11.997 10.5C11.997 10.364 12.047 10.246 12.146 10.146C12.246 10.047 12.364 9.997 12.5 9.997C12.636 9.997 12.754 10.047 12.854 10.146L14.854 12.146C14.953 12.246 15.003 12.364 15.003 12.5C15.003 12.636 14.953 12.754 14.854 12.854Z" />
    </svg>
  );
}
Vue
Vue: see /icons/key-code.md
Svelte
Svelte: see /icons/key-code.md
HTML img
HTML img: see /icons/key-code.md
CSS
CSS: see /icons/key-code.md
Data URL
Data URL: see /icons/key-code.md
Sprite
Sprite: see /icons/key-code.md
SwiftUI
SwiftUI: see /icons/key-code.md
Compose
Compose: see /icons/key-code.md
Android XML
Android XML: see /icons/key-code.md
Flutter
Flutter: see /icons/key-code.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { KeyCodeIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
api key, developer key, access token, api token, personal access token, secret key, secrets, secrets manager
Don’t confuse with
  • key: a bare key means a credential; API key is key + </>
Also fits
  • api: an API key or access token
  • key: an API key or access token
Tags
api, api-key, token, secret, credential, developer, code, key
Category
Security & privacy
Component name
KeyCodeIcon
History
  • added
  • released in 0.1.0
  • changed in 0.2.0
  • 16 px redrawn
  • 16 px redrawn, 20 px redrawn, 24 px redrawn, 20 px drawn, 24 px drawn
  • changed in 0.4.0
Since
version 0.1.0

Family 19

More security & privacy icons

For agents

Metadata: /icons/key-code.json · Markdown: /icons/key-code.md · SVG: https://gentleface.com/svg/{style}/16/key-code.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/key-code.png