MyAPIs v0.1.0
https://apis-cloud.net

パスワード

指定した文字種からランダムなパスワードを生成する。各文字種が最低1文字入ることを保証する。

エンドポイントhttps://apis-cloud.net/tools/password/random
認証不要(CORS 全オリジン許可)
再現性?seed= を付けると同じ結果になる

クエリパラメータ

lengthstring任意 長さ(4〜128、既定 16)
nstring任意 生成する個数(1〜50、既定 1)
symbolsstring任意 記号を含める(既定 1)
digitsstring任意 数字を含める(既定 1)
upperstring任意 英大文字を含める(既定 1)
lowerstring任意 英小文字を含める(既定 1)
ambiguousstring任意 1 で紛らわしい文字 (Il1O0) も使う(既定 0)
seedstring任意 同じ値を渡すと毎回同じ結果になる
prettyboolean任意 1 で整形して返す

GET/tools/password/random
GET/tools/password/random?length=32&symbols=0
GET/tools/password/random?n=5&length=12

よくある質問

パスワードはどう呼び出しますか?
GET https://apis-cloud.net/tools/password/random を呼ぶだけです。認証は不要で、結果はJSONで返ります。
同じ結果をもう一度得られますか?
?seed= に同じ文字列を渡せば、毎回同じ値が返ります。テストの期待値を固定したいときに使えます。

他のジェネレータ

リクエスト
curl -s "https://apis-cloud.net/tools/password/random?length=32&symbols=0"
const res = await fetch("https://apis-cloud.net/tools/password/random?length=32&symbols=0");
const data = await res.json();
import urllib.request, json

with urllib.request.urlopen("https://apis-cloud.net/tools/password/random?length=32&symbols=0") as r:
    data = json.load(r)