DEV Community

scotia1973-bot
scotia1973-bot

Posted on

Secure Password Generation: One API Call, Zero Setup

One Curl Command

curl "https://api.gadgethumans.com/password?length=32&symbols=true"
Enter fullscreen mode Exit fullscreen mode

JavaScript

async function genPassword(length) {
  const r = await fetch(`https://api.gadgethumans.com/password?length=${length}`);
  return (await r.json()).password;
}
Enter fullscreen mode Exit fullscreen mode

Free - 100/day. api.gadgethumans.com

Top comments (0)