# Module cryptography-core
Provides multiplatform API to build, get and use cryptography primitives
Core entities:
* [CryptographyProvider][CryptographyProvider] provides a way to get specific [CryptographyAlgorithm][CryptographyAlgorithm] by its id
* [CryptographyProvider.Default][CryptographyProvider.Default] is the default provider
which is just a link to the first registered provider.
After adding dependency to provider (like openssl3) it will be automatically registered as default
* inheritors of [CryptographyAlgorithm][CryptographyAlgorithm] (like f.e. [AES][AES]) provides access to operations (like
f.e. [cipher][cipher])
## Example
```kotlin
CryptographyProvider.Default
.get(SHA512)
.hasher()
.hash("Kotlin is Awesome".encodeToByteArray())
```
## Using in your projects
```kotlin
dependencies {
implementation("dev.whyoleg.cryptography:cryptography-core:0.1.0")
}
```
[CryptographyProvider]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.provider/-cryptography-provider/index.html
[CryptographyProvider.Default]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.provider/-cryptography-provider/-default/index.html
[CryptographyAlgorithm]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.algorithms/-cryptography-algorithm/index.html
[AES]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.algorithms.symmetric/-a-e-s/index.html
[cipher]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.operations.cipher/-cipher/index.html
# Package dev.whyoleg.cryptography
Provides core utility primitives
# Package dev.whyoleg.cryptography.algorithms
Provides API to construct [CryptographyAlgorithm][CryptographyAlgorithm]
[CryptographyAlgorithm]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.algorithms/-cryptography-algorithm/index.html
# Package dev.whyoleg.cryptography.algorithms.digest
Provides common digest algorithms, like [SHA256][SHA256] and [SHA512][SHA512]
[SHA256]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.algorithms.digest/-s-h-a256/index.html
[SHA512]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.algorithms.digest/-s-h-a512/index.html
# Package dev.whyoleg.cryptography.algorithms.symmetric
Provides common symmetric ciphers and MAC algorithms, like [AES][AES] and [HMAC][HMAC]
[AES]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.algorithms.symmetric/-a-e-s/index.html
[HMAC]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.algorithms.symmetric/-h-m-a-c/index.html
# Package dev.whyoleg.cryptography.algorithms.asymmetric
Provides common asymmetric encryption and signature algorithms, like [RSA][RSA] and [ECDSA][ECDSA]
[RSA]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.algorithms.asymmetric/-r-s-a/index.html
[ECDSA]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.algorithms.asymmetric/-e-c-d-s-a/index.html
# Package dev.whyoleg.cryptography.operations.cipher
Provides API for [encryption][Encryptor]/[decryption][Decryptor] and
Authenticated [encryption][AuthenticatedEncryptor]/[decryption][AuthenticatedDecryptor]
[Encryptor]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.operations.cipher/-encryptor/index.html
[Decryptor]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.operations.cipher/-decryptor/index.html
[AuthenticatedEncryptor]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.operations.cipher/-authenticated-encryptor/index.html
[AuthenticatedDecryptor]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.operations.cipher/-authenticated-decryptor/index.html
# Package dev.whyoleg.cryptography.operations.hash
Provides [hashing][Hasher] operation
[Hasher]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.operations.hash/-hasher/index.html
# Package dev.whyoleg.cryptography.operations.signature
Provides signature [verification][SignatureVerifier] and [generation][SignatureGenerator] API
[SignatureVerifier]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.operations.signature/-signature-verifier/index.html
[SignatureGenerator]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.operations.signature/-signature-generator/index.html
# Package dev.whyoleg.cryptography.materials.key
Provides API for working with keys: [encoding][EncodableKey], [decoding][KeyDecoder] and [generation][KeyGenerator]
[EncodableKey]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.materials.key/-encodable-key/index.html
[KeyDecoder]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.materials.key/-key-decoder/index.html
[KeyGenerator]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.materials.key/-key-generator/index.html
# Package dev.whyoleg.cryptography.provider
Provides API to create [CryptographyProvider][CryptographyProvider] as well as getting [CryptographyAlgorithm][CryptographyAlgorithm]
[CryptographyProvider]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.provider/-cryptography-provider/index.html
[CryptographyAlgorithm]: https://whyoleg.github.io/cryptography-kotlin/api/cryptography-core/dev.whyoleg.cryptography.algorithms/-cryptography-algorithm/index.html
没有合适的资源?快使用搜索试试~ 我知道了~
用于Kotlin的类型安全的多平台加密库.zip
共279个文件
kt:184个
kts:42个
md:14个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 40 浏览量
2023-03-28
13:44:41
上传
评论
收藏 406KB ZIP 举报
温馨提示
用于Kotlin的类型安全的多平台加密库.zip
资源推荐
资源详情
资源评论
收起资源包目录
用于Kotlin的类型安全的多平台加密库.zip (279个子文件)
cryptography-core.api 37KB
cryptography-jdk.api 2KB
cryptography-random.api 1KB
gradlew.bat 3KB
gradlew.bat 3KB
dev.whyoleg.cryptography.provider.CryptographyProviderContainer 62B
declarations.def 1KB
linking.def 464B
linking.def 96B
random.def 85B
.gitignore 162B
gradlew 8KB
gradlew 8KB
gradle-wrapper.jar 60KB
gradle-wrapper.jar 60KB
config.js 316B
Openssl3Ecdsa.kt 11KB
CCAesCbc.kt 7KB
EcdsaTest.kt 7KB
Openssl3AesGcm.kt 6KB
LibCrypto3Test.kt 6KB
Openssl3RsaOaep.kt 5KB
JdkRsaOaep.kt 5KB
WebCryptoRsaOaep.kt 5KB
Openssl3AesCbc.kt 5KB
Openssl3Rsa.kt 5KB
JdkRsaPss.kt 4KB
RSA.kt 4KB
JdkEc.kt 4KB
CCHmac.kt 4KB
ServerApi.kt 4KB
Openssl3Hmac.kt 4KB
WebCryptoRsaPss.kt 4KB
JdkCryptographyState.kt 4KB
CryptographyRandomTest.kt 4KB
RsaBasedTest.kt 4KB
HmacTest.kt 4KB
AesCbcTest.kt 3KB
RsaOaepTest.kt 3KB
AesGcmTest.kt 3KB
SubtleCrypto.kt 3KB
EcdsaTest.kt 3KB
JdkEcdsa.kt 3KB
RsaPssTest.kt 3KB
HmacTest.kt 3KB
Openssl3RsaPss.kt 3KB
AesCbcTest.kt 3KB
WebCryptoAesGcm.kt 3KB
support.kt 3KB
JdkCryptographyProvider.kt 3KB
Models.kt 3KB
compatibility.kt 3KB
WebCryptoAesCbc.kt 3KB
AesBasedTest.kt 2KB
WebCryptoEcdsa.kt 2KB
CryptographyRandom.kt 2KB
CompatibilityStorageApi.kt 2KB
KeyAlgorithm.kt 2KB
JdkAesGcm.kt 2KB
Openssl3KeyDecoder.kt 2KB
WebCryptoEc.kt 2KB
JdkAesCbc.kt 2KB
utils.kt 2KB
WebCryptoHmac.kt 2KB
Openssl3Aes.kt 2KB
InMemoryApi.kt 2KB
CCHashAlgorithm.kt 2KB
TesttoolServerPlugin.kt 2KB
TesttoolClient.kt 2KB
Openssl3KeyEncodable.kt 2KB
CryptographyRandom.jvm.kt 2KB
RsaOaepTest.kt 2KB
test.kt 2KB
EC.kt 2KB
RsaPssTest.kt 2KB
Openssl3CryptographyProvider.kt 2KB
DigestTest.kt 2KB
AES.kt 2KB
JdkHmac.kt 2KB
Openssl3DigestSignatureGenerator.kt 2KB
Openssl3DigestSignatureVerifier.kt 2KB
AesGcmTest.kt 2KB
WebCryptoCryptographyProvider.kt 2KB
CryptographyRandom.darwin.kt 2KB
utils.kt 2KB
OpensslExtension.kt 1KB
TesttoolServer.kt 1KB
ECDSA.kt 1KB
AppleCryptographyProvider.kt 1KB
Openssl3Digest.kt 1KB
SupportedAlgorithmsTest.kt 1KB
generators.kt 1KB
CryptographyRandom.js.kt 1KB
Openssl3KeyPairGenerator.kt 1KB
pem.kt 1KB
BinarySize.kt 1KB
pem.kt 1KB
CompatibilityTest.kt 1KB
URandom.kt 1KB
pooling.kt 1KB
共 279 条
- 1
- 2
- 3
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于opencv的人脸识别考勤系统python源码+数据.zip
- IOT安装包 iotech-iot-1.5-dev-1.5.0-amd64.deb
- 基于物品的协同过滤算法(推荐视频)工具类(见仁见智)
- 21信管2班 武学芹组+独立样本T检验数据分析案例.zip
- demo_ccms_global_open_wlan.py
- 小程序项目源码-小契约(交友互动小程序).zip
- 小程序项目源码-健身房预约课程小程序.zip
- 小程序项目源码-wechat-app-xiaoyima-master小程序.zip
- 小程序项目源码-滑动选项卡小程序.zip
- 小程序项目源码-学习Demo影视推荐、音乐播放、地图小程序.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功