```
________________________________________
\__ ___/ _____/\_ _____/\_ ___ \
| | \_____ \ | __)_ / \ \/
| | / \ | \\ \____
|____| /_______ //_______ / \______ /
\/ \/ \/
```
# [TSEC: A type-safe, functional, general purpose security and cryptography library.](https://jmcardon.github.io/tsec/)
[![Join the chat at https://gitter.im/tsecc/Lobby](https://badges.gitter.im/tsecc/Lobby.svg)](https://gitter.im/tsecc/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Build Status](https://travis-ci.org/jmcardon/tsec.svg?branch=master)](https://travis-ci.org/jmcardon/tsec)
[ ![Latest Version](https://maven-badges.herokuapp.com/maven-central/io.github.jmcardon/tsec-common_2.12/badge.svg)](https://search.maven.org/#search%7Cga%7C1%7Cg%3A"io.github.jmcardon"%20tsec)
### Latest Release: 0.0.1-M11
For the current progress, please refer to the [RoadMap](https://github.com/jmcardon/tsec/wiki)
For version changes and additions, including breaking changes, see either [release notes](https://github.com/jmcardon/tsec/releases)
or the [Version Changes](https://github.com/jmcardon/tsec/wiki/Version-Changes) page.
## Note about using Windows™® with tsec
Windows™® is not supported.
Feel free to fork the project and add your own windows support.
### Note on milestones:
Our Notation for versions is:
```
X.X.X
^ ^ ^____Minor
| |______Major
|________Complete redesign (i.e scalaz 7 vs 8)
```
All `x.x.x-Mx` releases are milestone releases. Thus, we do not guarantee binary compatibility or no api-breakage until
a concrete version(i.e `0.0.1`). We aim to keep userland-apis relatively stable, but
internals shift as we find better/more performant abstractions.
We will guarantee compatibility between minor versions (i.e 0.0.1 => 0.0.2) but not major versions (0.0.1 => 0.1.0)
0.0.1-M11 is here for scala 2.12+ and Cats 1.0.1!
To get started, if you are on sbt 0.13.16+, add
| Name | Description | Examples |
| ----- | ---------- | -------- |
| tsec-common | Common crypto utilities | |
| tsec-password | Password hashers: BCrypt and Scrypt | [here](https://github.com/jmcardon/tsec/blob/master/examples/src/main/scala/PasswordHashingExamples.scala)|
| tsec-cipher-jca | Symmetric encryption utilities | [here](https://github.com/jmcardon/tsec/blob/master/examples/src/main/scala/SymmetricCipherExamples.scala)|
| tsec-cipher-bouncy | Symmetric encryption utilities | [here](https://github.com/jmcardon/tsec/blob/master/examples/src/main/scala/SymmetricCipherExamples.scala)|
| tsec-mac | Message Authentication | [here](https://github.com/jmcardon/tsec/blob/master/examples/src/main/scala/MacExamples.scala)|
| tsec-signatures | Digital signatures | [here](https://github.com/jmcardon/tsec/blob/master/examples/src/main/scala/SignatureExamples.scala)|
| tsec-hash-jca | Message Digests (Hashing) | [here](https://github.com/jmcardon/tsec/blob/master/examples/src/main/scala/MessageDigestExamples.scala)|
| tsec-hash-bouncy | Message Digests (Hashing) | [here](https://github.com/jmcardon/tsec/blob/master/examples/src/main/scala/MessageDigestExamples.scala)|
| tsec-libsodium | Nicely-typed Libsodium JNI bridge | [here](https://github.com/jmcardon/tsec/blob/master/examples/src/main/scala/MessageDigestExamples.scala)|
| tsec-jwt-mac | JWT implementation for Message Authentication signatures | [here](https://github.com/jmcardon/tsec/blob/master/examples/src/main/scala/JWTMacExamples.scala)|
| tsec-jwt-sig | JWT implementation for Digital signatures | [here](https://github.com/jmcardon/tsec/blob/master/examples/src/main/scala/JWTSignatureExamples.scala)|
| tsec-http4s | Http4s Request Authentication and Authorization | [here](https://github.com/jmcardon/tsec/tree/master/examples/src/main/scala/http4sExamples)|
To include any of these packages in your project use:
```scala
val tsecV = "0.0.1-M11"
libraryDependencies ++= Seq(
"io.github.jmcardon" %% "tsec-common" % tsecV,
"io.github.jmcardon" %% "tsec-password" % tsecV,
"io.github.jmcardon" %% "tsec-cipher-jca" % tsecV,
"io.github.jmcardon" %% "tsec-cipher-bouncy" % tsecV,
"io.github.jmcardon" %% "tsec-mac" % tsecV,
"io.github.jmcardon" %% "tsec-signatures" % tsecV,
"io.github.jmcardon" %% "tsec-hash-jca" % tsecV,
"io.github.jmcardon" %% "tsec-hash-bouncy" % tsecV,
"io.github.jmcardon" %% "tsec-libsodium" % tsecV,
"io.github.jmcardon" %% "tsec-jwt-mac" % tsecV,
"io.github.jmcardon" %% "tsec-jwt-sig" % tsecV,
"io.github.jmcardon" %% "tsec-http4s" % tsecV
)
```
## Note on contributing
See CONTRIBUTING.md
## A note on logging
We use `log4s` which is a logging facade over [SLF4J](https://www.slf4j.org/). This implies you need to add a
_binding_ to your classpath. Check https://www.slf4j.org/codes.html#StaticLoggerBinder
## Big Thank you to our contributors (direct or indirect):
[Robert Soeldner](https://github.com/rsoeldner) (Contributor/Maintainer)
[Christopher Davenport](https://github.com/ChristopherDavenport)(Contributor/Maintainer)
[Harrison Houghton](https://github.com/hrhino)(Contributor/Maintainer)
[Bjørn Madsen](https://github.com/aeons) (Contributor)
[André Rouél](https://github.com/before)(Contributor)
[Edmund Noble](https://github.com/edmundnoble) (For the dank tagless)
[Fabio Labella](https://github.com/systemfw) (For the great FP help)
[Will Sargent](https://github.com/wsargent) (Security Discussions)
没有合适的资源?快使用搜索试试~ 我知道了~
类型安全的通用加密库-httpsjmcardon.github.iotsec.zip
共336个文件
scala:294个
md:23个
java:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 32 浏览量
2023-03-28
13:42:36
上传
评论
收藏 355KB ZIP 举报
温馨提示
类型安全的通用加密库-httpsjmcardon.github.iotsec
资源推荐
资源详情
资源评论
收起资源包目录
类型安全的通用加密库-httpsjmcardon.github.iotsec.zip (336个子文件)
.scalafmt.conf 327B
.gitignore 172B
sodium.i 66KB
JBCrypt.java 29KB
SodiumJNI.java 28KB
XChaCha20Engine.java 7KB
ChaCha20IETFEngine.java 6KB
CirceShim.java 258B
.jvmopts 102B
.mailmap 380B
http4s-auth.md 7KB
authorization.md 6KB
README.md 6KB
index.md 6KB
auth-ecookie.md 4KB
symmetric.md 4KB
auth-scookie.md 4KB
jwt-mac.md 3KB
csrf.md 3KB
passwordhashers.md 3KB
auth-jwt.md 3KB
common.md 3KB
auth-bearer.md 3KB
motivation.md 2KB
Extra Resources.md 2KB
README.md 2KB
philosophy.md 2KB
messagedigests.md 1KB
signatures.md 1KB
mac.md 1KB
documentation.md 145B
CONTRIBUTING.md 125B
home.md 115B
build.properties 20B
build.sbt 11KB
plugins.sbt 933B
version.sbt 41B
ScalaSodium0.scala 50KB
RequestAuthenticatorSpec.scala 19KB
EncryptedCookieAuthenticator.scala 18KB
JWTAuthenticator.scala 15KB
AuthenticatorSpec.scala 14KB
GeneralSignature.scala 14KB
ChaCha20Cipher.scala 12KB
SymmetricSpec.scala 11KB
JWTClaims.scala 11KB
package.scala 10KB
JCASymmetricSpec.scala 10KB
XChacha20Poly1305.scala 10KB
SignedCookieAuthenticator.scala 9KB
JWTAuthenticatorTests.scala 9KB
TokenEndPointSpec.scala 8KB
JWTSigTests.scala 7KB
package.scala 7KB
JWTAuthenticatorSpec.scala 7KB
SodiumAEADPlatform.scala 7KB
XSalsa20Poly1305.scala 7KB
JWTMac.scala 7KB
AuthorizationTests.scala 6KB
ValidatedRequest.scala 6KB
JWTMacTests.scala 6KB
CSRFSpec.scala 6KB
CipherEqualityTest.scala 6KB
TSecCSRF.scala 6KB
CryptoBox.scala 6KB
SodiumAEADTest.scala 6KB
PKEncryptionTest.scala 6KB
AuthorizationCodeGrantHandlerSpec.scala 5KB
EncryptedCookieAuthenticatorSpec.scala 5KB
JCAAEADPrimitive.scala 5KB
JWSMacCV.scala 5KB
ProtectedResourceSpec.scala 5KB
TokenEndpoint.scala 5KB
JWSSigCV.scala 5KB
PasswordHasher.scala 5KB
BearerTokenAuthenticator.scala 4KB
SodiumAEADCipher.scala 4KB
SodiumCipherPlatform.scala 4KB
JWSSignedHeader.scala 4KB
JWTSig.scala 4KB
SignedCookieAuthenticatorTests.scala 4KB
Ed25519Sig.scala 4KB
package.scala 4KB
PasswordSpec.scala 4KB
CipherAPI.scala 4KB
PasswordHashAPI.scala 4KB
XChacha20AEAD.scala 4KB
OriginalChacha20.scala 4KB
IETFChacha20.scala 4KB
AuthHeaderSpec.scala 4KB
ParseEncodedKeySpec.scala 4KB
gensodium.scala 4KB
ValidatedRequestSpec.scala 4KB
AES256GCM.scala 4KB
GrantHandler.scala 4KB
Blake2b.scala 3KB
CipherBench.scala 3KB
EncryptedCookieAuthenticatorTests.scala 3KB
SignatureTests.scala 3KB
PasswordTest.scala 3KB
共 336 条
- 1
- 2
- 3
- 4
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Typescript和PHP的编程知识储备库设计源码 - study-php
- Screenshot_2024-05-28-11-40-58-177_com.tencent.mm.jpg
- 基于Dart的Flutter小提琴调音器APP设计源码 - violinhelper
- 基于JavaScript和CSS的随寻订购网页设计源码 - web-order
- 基于MATLAB的声纹识别系统设计源码 - VoiceprintRecognition
- 基于Java的微服务插件集合设计源码 - wsy-plugins
- 基于Vue和微信小程序的监理日志系统设计源码 - supervisionLog
- 基于Java和LCN分布式事务框架的设计源码 - tx-lcn
- 基于Java和JavaScript的茶叶评级管理系统设计源码 - tea
- IMG_5680.JPG
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功