Code Monkey home page Code Monkey logo

temail-vault-sdk's Introduction

密基Java版

封装C++密基

具体使用方法请见 temail-vault/README.md

使用Benchmark测试密基算法性能

运行如下命令打包

mvn package

运行如下命令开始性能测试

java -cp dependency/*:vault-keeper-1.0.8-SNAPSHOT-tests.jar:vault-keeper-1.0.8-SNAPSHOT.jar com.syswin.temail.kms.vault.BenchmarkRunner

示例性能测试结果数据

Benchmark          Mode  Cnt     Score      Error  Units
BenchMark.decrypt  avgt  200  9088.184 ±   34.702  us/op
BenchMark.encrypt  avgt  200  9488.350 ±   32.648  us/op
BenchMark.sign     avgt  200  2526.902 ±  510.948  us/op
BenchMark.verify   avgt  200  2872.475 ± 1015.743  us/op

配置

使用vault-spring-boot-starter依赖时,缓存大小及过期时间可通过如下参数控制

app.vault.cache.entries=1000 # 默认缓存1000个密钥
app.vault.cache.ttl=3600 # 缓存默认1小时过期

temail-vault-sdk's People

Contributors

kennyjing avatar liusenwansui avatar seanyinx 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.