Strong password

This API generates random strong passwords with customizable length
1ms

About

The Password Generation API provides secure, random passwords of a default length of 20 characters. Additionally, it can check if the hash of a provided password has appeared in known data breaches, enhancing security by preventing the use of compromised credentials. Users can customize the password length with the length parameter and perform hash checks to ensure maximum safety for user accounts and sensitive data
by GLOBUS.studio

Endpoint

				
					/**
 * Password Generator API
 * GET https://api.globus.studio/v2/password
 * GET https://api.globus.studio/v2/password?length=20
 * Response: plain text password
 */

async function genPassword(length) {
    const url = new URL('https://api.globus.studio/v2/password');
    if (length) url.searchParams.set('length', length);

    const res = await fetch(url);
    return res.text();
}

// Default length
genPassword().then(p => console.log(p));

// Custom length
genPassword(10).then(p => console.log(p));