{"id":19778323,"url":"https://github.com/npkgz/password-magic","last_synced_at":"2026-06-09T06:31:32.056Z","repository":{"id":43002513,"uuid":"105906185","full_name":"npkgz/password-magic","owner":"npkgz","description":"Generate ultrastrong user passwords and auth tokens","archived":false,"fork":false,"pushed_at":"2022-03-24T01:43:53.000Z","size":89,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-25T19:08:20.731Z","etag":null,"topics":["asynchronous","crypto","human-passwords","nodejs-library","passphrase","password-generator","pin","remarkable-passwords","token-generation","ultrastrong-passphrases"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/password-magic","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npkgz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-05T15:19:50.000Z","updated_at":"2022-05-06T01:18:13.000Z","dependencies_parsed_at":"2022-08-25T21:01:30.593Z","dependency_job_id":null,"html_url":"https://github.com/npkgz/password-magic","commit_stats":null,"previous_names":["andidittrich/node.password-magic"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/npkgz/password-magic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npkgz%2Fpassword-magic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npkgz%2Fpassword-magic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npkgz%2Fpassword-magic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npkgz%2Fpassword-magic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npkgz","download_url":"https://codeload.github.com/npkgz/password-magic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npkgz%2Fpassword-magic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34095243,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asynchronous","crypto","human-passwords","nodejs-library","passphrase","password-generator","pin","remarkable-passwords","token-generation","ultrastrong-passphrases"],"created_at":"2024-11-12T05:28:54.746Z","updated_at":"2026-06-09T06:31:32.036Z","avatar_url":"https://github.com/npkgz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/AndiDittrich/Node.password-magic.svg?branch=master)](https://travis-ci.org/AndiDittrich/Node.password-magic)\n\npassword-magic\n=========================\n\nGenerate ultrastrong user passwords and auth tokens\n\n```\nyarn add password-magic --save\n```\n\nFeatures\n------------------------------\n\n* Full **asynchronous operation**\n* Generate Random User Passwords\n* Random Number Sequences of arbitrary length \n* Random Pin Numbers (4 Digits)\n* Remarkable Human Passwords (nato+greek alphabet)\n* Human passwords/tokens only uses easy readable chars (`l` and `i` are avoided)\n* Alphnumerical Tokens\n* Node.js [crypto API](https://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback) is used to generate uniformly-distributed random numbers\n\nAPI\n------------------------------\n\n * [numbers](#numbers) - Random Number Sequences of arbitrary length \n * [pin](#pin) - Creates a 4 digit numerical code\n * [internet](#internet) - Strong passphrases especially used for web services/accounts/wifi\n * [server](#server) - Ultrastrong passphrases especially used for servers\n * [humanShort](#humanshort) - Remarkable passwords including greek+nato alphabet\n * [token](#token) - Alphnumerical Standard Tokens\n\nnumbers\n------------------------------\n\n**Description:** Random Number Sequences of arbitrary length \n\n**Syntax:** `sequence:string = numbers([length:int = 8])`\n\n**Output:** `9071248216498`\n\n**Arguments:**\n\n * length:int - length of the generated sequence\n\n**Example:**\n\n```js\nconst _pwMagic = require('./password-magic');\n\nfor (let i=0;i\u003c10;i++){\n    console.log('Numbers', await _pwMagic.numbers());\n}\n```\n\npin\n------------------------------\n\n**Description:** Creates a 4 digit numerical code\n\n**Syntax:** `sequence:string = pin()`\n\n**Output:** `0981`\n\ninternet\n------------------------------\n\n**Description:** Strong passphrases especially used for web services/accounts or wifi\n\n**Syntax:** `sequence:string = internet([length:int = 22], [shuffle:boolean = false])`\n\n**Output:** `brGK98]~hkhyNE79_?297`\n\n**Arguments:**\n\n * length:int - length of the generated sequence\n * shuffle:boolean - flag to enable character position shuffle (random positions)\n\n**Example:**\n\n```js\nconst pw1 = await _pwMagic.internet();\n// brGK98]~hkhyNE79_?297\n\nconst pw2 = await _pwMagic.internet(50, true);\n// 62p6u4dS934HssJ9*8BMa!(NN}q}384Udoc2F!)8%§5!D7psYL\n```\n\nserver\n------------------------------\n\n**Description:** Ultrastrong passphrases especially used for servers\n\n**Syntax:** `sequence:string = server([length:int = 20])`\n\n**Output:** `v~8)yyk§HMKU§HBg\u0026%#w`\n\n**Arguments:**\n\n * length:int - length of the generated sequence\n\n**Example:**\n\n```js\nconst pw1 = await _pwMagic.server(25);\n// v~8)yyk§HMKU§HBg\u0026%#wyDS9F\n```\n\nhumanShort\n------------------------------\n\n**Description:** Remarkable passphrases especially used for web services/accounts **with** multifactor auth\n\n**Syntax:** `sequence:string = humanShort()`\n\n**Output:** `foxtrot5SIERRA,four]03pm`\n\n**Example:**\n\n```js\nconst pw1 = await _pwMagic.humanShort();\n// foxtrot5SIERRA,four]03pm\n```\n\ntoken\n------------------------------\n\n**Description:** Alphnumerical Standard Tokens\n\n**Syntax:** `sequence:string = token([length:int = 20])`\n\n**Output:** `l4J4rK9v62MUGBstbgh0XyQUQ`\n\n**Arguments:**\n\n * length:int - length of the generated sequence\n\n**Example:**\n\n```js\nconst pw1 = await _pwMagic.token(50);\n// Q49hIVylOKI1ixUe5FLliIsUEbASHWXjFRBEBPs6zcoog0JFnezOvS6HJWahQhca\n```\n\nAny Questions ? Report a Bug ? Enhancements ?\n---------------------------------------------\nPlease open a new issue on [GitHub](https://github.com/AndiDittrich/Node.password-magic/issues)\n\nLicense\n-------\npassword-magic is OpenSource and licensed under the Terms of [The MIT License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpkgz%2Fpassword-magic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpkgz%2Fpassword-magic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpkgz%2Fpassword-magic/lists"}