0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

仮想マシンを立てる時のパスワード作成ツール🔑

Last updated at Posted at 2024-11-15

ウェブから仮想マシンを立てるときにユーザアカウントの強固なパスワードを作成できるお役立ちツール。

import random
from enum import Enum
random.seed(1)

class Regulation(str, Enum):
    SYMBOL: str = "@!_()[]@"


def run(inputstr: str):

    rngd = [random.randint(1, 100) for _ in range(10)]
    
    rn = "".join(map(str, rngd))
    base = inputstr + rn + Regulation.SYMBOL
    _tmp = list(base)
    random.shuffle(_tmp)
    password = "".join(map(str, _tmp))
    print(password)
    

if __name__ == "__main__":
    run(input())
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?