All Projects → msayan → otp-view

msayan / otp-view

Licence: MIT license
OTP View

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to otp-view

KWVerificationCodeView
A customisable verification code view to capture OTPs
Stars: ✭ 83 (+159.38%)
Mutual labels:  otp, otpview
hotp-php
HMAC Based One Time Passwords in PHP. RFC4226 and RFC6238 compliant.
Stars: ✭ 51 (+59.38%)
Mutual labels:  otp
kronos
Management of arithmetic operations on dates
Stars: ✭ 23 (-28.12%)
Mutual labels:  otp
yubitell
Silently extract a YubiKey serial number
Stars: ✭ 15 (-53.12%)
Mutual labels:  otp
jiface
A Clojure-idiomatic wrapper around Erlang's JInterface
Stars: ✭ 27 (-15.62%)
Mutual labels:  otp
ants
What is this, a repo for ants?
Stars: ✭ 23 (-28.12%)
Mutual labels:  otp
ootp
OOTP (Open One-time Password) is a supports multiple programming languages. The generated one-time passwords are fully compliant with HOTP (HMAC-based One-time Password) and TOTP (Time-based One-time Password). 🚀It's easy to use!
Stars: ✭ 17 (-46.87%)
Mutual labels:  otp
ios-application
A native, lightweight and secure one-time-password (OTP) client built for iOS; Raivo OTP!
Stars: ✭ 581 (+1715.63%)
Mutual labels:  otp
otp
📫 Fault tolerant multicore programs with actors
Stars: ✭ 169 (+428.13%)
Mutual labels:  otp
BJOTPViewController
Entering OTP made simpler.
Stars: ✭ 42 (+31.25%)
Mutual labels:  otp
otp
One Time Password for 2-Factor-Authentication implemented in Rust
Stars: ✭ 21 (-34.37%)
Mutual labels:  otp
rx-otp
HMAC-based (HOTP) and Time-based (TOTP) One-Time Password manager. Works with Google Authenticator for Two-Factor Authentication.
Stars: ✭ 79 (+146.88%)
Mutual labels:  otp
clojang
Clojure API for Erlang/OTP Communications (built on jiface)
Stars: ✭ 61 (+90.63%)
Mutual labels:  otp
DPOTPView
Customisable OTP view and Passcode view
Stars: ✭ 52 (+62.5%)
Mutual labels:  otp
abacus
Abacus is a tool to simplify the handling of units
Stars: ✭ 22 (-31.25%)
Mutual labels:  otp
2FAuth
A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes
Stars: ✭ 664 (+1975%)
Mutual labels:  otp
issuer-icons
Vector graphics of one-time password issuer logo's, used in Raivo OTP for iOS.
Stars: ✭ 79 (+146.88%)
Mutual labels:  otp
sockerl
Sockerl is an advanced Erlang/Elixir socket framework for TCP protocols and provides fast, useful and easy-to-use API for implementing servers, clients and client connection pools.
Stars: ✭ 26 (-18.75%)
Mutual labels:  otp
laravel-otp
A laravel package to protect your routes with one time passwords (otp)
Stars: ✭ 147 (+359.38%)
Mutual labels:  otp
cre
common runtime environment for distributed programming languages
Stars: ✭ 20 (-37.5%)
Mutual labels:  otp

OTP View

Ready to use one time password component.

sample_video

Usage

XML

<com.hololo.library.otpview.OTPView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        app:hintColor="@android:color/holo_blue_bright"
        app:inputType="number"
        app:otpText="123"
        app:count="7"
        app:textColor="@color/colorPrimary"
        app:otpHint="*" />

Java

        OTPView otpView = (OTPView) findViewById(R.id.otpView);
        otpView.setTextColor(R.color.colorAccent)
                .setHintColor(R.color.colorAccent)
                .setCount(7)
                .setInputType(InputType.TYPE_CLASS_NUMBER)
                .setViewsPadding(16)
                .setListener(new OTPListener() {
                    @Override
                    public void otpFinished(String otp) {
                        Toast.makeText(MainActivity.this, "OTP finished, the otp is " + otp, Toast.LENGTH_SHORT).show();
                    }
                })
                .fillLayout(); 

OTP Listener

    otpView.setListener(new OTPListener() {
                   @Override
                   public void otpFinished(String otp) {
                       Toast.makeText(MainActivity.this, "OTP finished, the otp is " + otp, Toast.LENGTH_SHORT).show();
                   }
               });

Download

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency

	dependencies {
		compile 'com.github.msayan:otp-view:v1.0.2'
	}
  

License

MIT License

Copyright (c) 2017 Mehmet Ayan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].