A Python tool to generate and verify One Time Password (OTP)
Project description
OTP Generator
A Python tool to generate and verify One Time Password (OTP)
This tool is designed to enable developers generate and verify OTP using Python cyrptophy package.
An OtpServer class provides basic operations for generating and verifying OTP. There is no database support provided for saving to a given database rather hooks are provided as functions. The function hooks take two parameters: a callable and a data. The callable is any class, method, or function which should be executed when an event occurs. The data parameter is used to pass any set of information or data to the callable during execution.
The hooks simply perform a function call without any data processing or checks. Developers are expected to perform necessary modifications to make this tool fit their designed system(s).
Motivation
The OTP generator was developed as a means of authenticating user's email, mobile or identity.
Dependencies
This application depends on cryptography
package. The target Python for current implementation is Python 3.8
Build Status
Version: 0.1.0
Current development of otp_generator
is version 0.1.0. This is considered the Alpha Edition.
Features
Current build features include:
- Generate OTP with corresponding data for later verification of the generated code
- Verify OTP code using stored data that does not identify the generated OTP code.
It is assumed that all data generated for a given OTP code are securely saved. Developers are to ensure storage and retrieval of data. Various function hooks are provided to this end.
Contributing
Please visit application repo for further information on extending project. Ideas and comments will be reasonably appreciated.
Author
Current development is by Aniefiok Friday @frier17.
License
MIT License
For details read license contract here
Copyright 2021 @frier17
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://mit-license.org/
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an " AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file otp_generator-0.1.0.tar.gz
.
File metadata
- Download URL: otp_generator-0.1.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 392e45c066f5c2a8bf117e05750b915df82ced5d70674c8175fcc33e8814284e |
|
MD5 | 2a755d02054bb7905c9cd5f06a17d585 |
|
BLAKE2b-256 | f7d563aa35419df0e56a1e6eccdfd1cd8ba7ff3064acc6427c79ffe737dfbdca |