KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
otp-generator
★ 75
Open GitHub ↗
One Time Password generator
Download README (.md)
Explore Similar Repositories
otp-cli
:
One Time Password (OTP) generator tool for sh, bash and zsh console. It works like Authy and Google Authenticator.
ots-share-app
:
A self-hosting app to share secrets only one-time.
imgout
:
On the fly thumbnail generator microservice using Elixir/OTP. (with Heroku Deploy Button)
Authenticator
:
Authenticator for Windows - UWP store app
yksofttoken
:
Software emulation of Yubikey hardware tokens in HOTP mode
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
otp-generator
?
Download (.md)
# otp-generator > 'otp-generator' is simple one time password generator and can be used as password generator. [![Build Status][travis-ci-img]][travis-ci-url] [![npm version][npm-version-img]][npm-version-url]  [![Test Coverage][coveralls-image]][coveralls-url] [![js-standard-style][js-standard-style-img]][js-standard-style-url] [](https://nodei.co/npm/otp-generator/) ## Index * [Install](#install) * [Usage](#usage) * [Test](#test) * [License](#license) ## Install ```bash npm install otp-generator --save ``` ## Usage ```js const otpGenerator = require('otp-generator') otpGenerator.generate(6, { upperCaseAlphabets: false, specialChars: false }); ``` ### generate(length, options) **Arguments** * `length` - length of password. Optional if `options` is optional. default length is 10. * `options` - optional - `digits` - Default: `true` true value includes digits in OTP - `lowerCaseAlphabets` - Default: `true` true value includes lowercase alphabets in OTP - `upperCaseAlphabets` - Default: `true` true value includes uppercase alphabets in OTP - `specialChars` - Default: `true` true value includes special Characters in OTP ## Tests ```js npm test ``` ## License [MIT][license-url] [license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat [license-url]: LICENSE [travis-ci-img]: https://travis-ci.org/Maheshkumar-Kakade/otp-generator.svg?branch=master [travis-ci-url]: https://travis-ci.org/Maheshkumar-Kakade/otp-generator [npm-version-img]: https://badge.fury.io/js/otp-generator.svg [npm-version-url]: http://badge.fury.io/js/otp-generator [coveralls-image]: https://coveralls.io/repos/github/Maheshkumar-Kakade/otp-generator/badge.svg?branch=master [coveralls-url]: https://coveralls.io/github/Maheshkumar-Kakade/otp-generator?branch=master [js-standard-style-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg [js-standard-style-url]: http://standardjs.com/