1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【第1回】pythonで某Authenticator的なツールを作ってみた

Last updated at Posted at 2020-04-11

2次開発的な。自主学習。
g−−ぇAuthenticator的なものをちょっとpythonで作ってみようと思って
とりあえず、作った。
これまた1回目

次は、ソースに直接、鍵とかユーザー名を入れるんじゃなくて
ちゃんとシステムチックな感じに整えていきます。

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import tkinter as tk
import pyotp


totp = pyotp.TOTP('ZAQWSXCDERFVBGT') #鍵的な値
totp.now()

# tkinterでwindowの作成とタイトルを作る
# windowサイズの指定
root = tk.Tk()
root.title(u"g_authentication_tool")
root.geometry("300x200")

# 表示用ラベル
Static1 = tk.Label(text=u'user1')
Static1.pack(side='left')

Static2 = tk.Label(text=totp.now())
Static2.pack(side='left')

root.mainloop()
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?