Giter VIP home page Giter VIP logo

webotpt's Introduction

Otp web

通过wss,在规定的有效期内可获取otp二次授权密码

otp密码加解密

otp密码比较敏感,既然要上传GitHub,需做好加密 pom中引入jasypt-maven-plugin插件,方便加解密

# 加密
mvn jasypt:encrypt-value -Djasypt.encryptor.password="password" -Djasypt.plugin.value="value"
解密
mvn jasypt:decrypt-value -Djasypt.encryptor.password="password" -Djasypt.plugin.value="ENC(47GYBJezlwnAkSUsVpoJhN2PmUSxhy2+RzakDWkjUZyZFCyZc676w3znplmuf/0F)"

加密把密文写入配置文件中,密钥通过启动JVM参数传入

启动

密钥通过启动JVM参数传入:-Djasypt.encryptor.password=

接口列表

可自动刷新otp的主页

otp=987728 ,expires later :7second!!

技术列表

1 使用otp-java生成otp密码

<dependency>
    <groupId>com.github.bastiaanjansen</groupId>
    <artifactId>otp-java</artifactId>
    <version>1.3.2</version>
</dependency>

2 使用jasypt加密otp密码

<dependency>
    <groupId>com.github.ulisesbocchio</groupId>
    <artifactId>jasypt-spring-boot-starter</artifactId>
    <version>3.0.5</version>
</dependency>

use docker

cd [codepath]

# 构建image
docker build -t myotp:v1.1.19 .

# 启动 传入密钥
docker run -d -p 8090:8090 -e JAVA_OPTS='-Djasypt.encryptor.password=passwd'   --name otp myotp:v1.1.19 

项目地址

jaspty

otp-java

extract_otp_secrets

本项目

webotpt's People

Contributors

dyq94310 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.