Skip to content

Instantly share code, notes, and snippets.

View Pringels's full-sized avatar

Peter Ringelmann Pringels

  • Berlin, Germany
View GitHub Profile
@saschpe
saschpe / otp.py
Last active January 16, 2020 06:33
Implementation of the OTP algorithm described at http://motp.sourceforge.net in Python. Supports reading secret and PIN from the command-line or from a config file. Allows to paste the generated token to the system's clipboard directly.
#!/usr/bin/env python3
#
# Copyright 2019 Sascha Peilicke <sascha@peilicke.de>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#