Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/diglol/crypto

Diglol Crypto for Kotlin Multiplatform.
https://github.com/diglol/crypto

aes aes-cbc aes-gcm argon2 crypto curve25519 ed25519 encrypt-then-mac hash hmac hotp kotlin multiplatform pbkdf2 poly1305 random totp x25519 xchacha20 xchacha20-poly1305

Last synced: 8 days ago
JSON representation

Diglol Crypto for Kotlin Multiplatform.

Awesome Lists containing this project

README

        

# Diglol Crypto

[![badge-license]][url-license]
[![badge-latest-release]][url-latest-release]

![badge-platform-android]
![badge-platform-jvm]
![badge-platform-js]
![badge-platform-linux]
![badge-platform-ios]
![badge-platform-tvos]
![badge-platform-watchos]
![badge-platform-windows]

Diglol Crypto for Kotlin Multiplatform.

ε½“ε‰ζ”―ζŒ:

- random
- nextInt
- nextBytes
- [hash][hash]
- SHA1
- SHA256
- SHA384
- SHA512
- mac
- [Hmac][hmac] (SHA1, SHA256, SHA384, SHA512)
- [Poly1305][poly1305]
- pkc
- Dh
- [X25519][x25519]
- Dsa
- [Ed25519][ed25519]
- kdf
- [Argon2][argon2]
- [Pbkdf2][pbkdf2]
- cipher
- [AesCbc][aescbc] (128, 256)
- [XChaCha20][xchacha20]
- aead
- [AesGcm][aesgcm] (128, 256)
- [XChaCha20Poly1305][xchacha20poly1305]
- [EncryptThenMac][encryptthenmac]
- otp
- [HOTP][hotp]
- [TOTP][totp]
- [siphash][siphash]
- siphash
- halfsiphash

### 发布

ζˆ‘δ»¬ηš„ [change log](CHANGELOG.md) ζœ‰ε‘εΈƒεŽ†ε²γ€‚

##### Crypto

εŒ…ε«ζ‰€ζœ‰ηš„ε­ζ¨‘ε—

```gradle
implementation("com.diglol.crypto:crypto:0.2.0")
```

_ε¦‚ζžœιœ€θ¦δΎθ΅–ε­ζ¨‘ε—οΌŒθ―·ε‚θ€ƒε½“ε‰ζ”―ζŒηš„εŠ ε―†εΈΈι‡γ€‚_

```gradle
implementation("com.diglol.crypto:${submodule}:0.2.0")
```

### License

Copyright 2022 Diglol

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

[hash]: https://datatracker.ietf.org/doc/html/rfc4634
[hmac]: https://datatracker.ietf.org/doc/html/rfc2104
[poly1305]: https://datatracker.ietf.org/doc/html/rfc7539
[x25519]: https://datatracker.ietf.org/doc/html/rfc7748
[ed25519]: https://datatracker.ietf.org/doc/html/rfc8032
[argon2]: https://datatracker.ietf.org/doc/rfc9106/
[pbkdf2]: https://datatracker.ietf.org/doc/html/rfc6070
[aescbc]: https://datatracker.ietf.org/doc/html/rfc3602
[xchacha20]: https://datatracker.ietf.org/doc/html/draft-arciszewski-xchacha-01
[aesgcm]: https://datatracker.ietf.org/doc/html/rfc5288
[xchacha20poly1305]: https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha
[encryptthenmac]: https://datatracker.ietf.org/doc/html/draft-mcgrew-aead-aes-cbc-hmac-sha2-05
[hotp]: https://datatracker.ietf.org/doc/html/rfc4226
[totp]: https://datatracker.ietf.org/doc/html/rfc6238
[siphash]: https://datatracker.ietf.org/doc/rfc9231/

[badge-latest-release]: https://img.shields.io/badge/latest--release-0.2.0-blue.svg?style=flat
[badge-license]: https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat
[url-latest-release]: https://github.com/diglol/crypto/releases/latest
[url-license]: https://www.apache.org/licenses/LICENSE-2.0.txt

[badge-platform-android]: http://img.shields.io/badge/-android-6EDB8D.svg?style=flat
[badge-platform-jvm]: http://img.shields.io/badge/-jvm-DB413D.svg?style=flat
[badge-platform-js]: http://img.shields.io/badge/-js-F8DB5D.svg?style=flat
[badge-platform-linux]: http://img.shields.io/badge/-linux-2D3F6C.svg?style=flat
[badge-platform-tvos]: http://img.shields.io/badge/-tvos-808080.svg?style=flat
[badge-platform-ios]: http://img.shields.io/badge/-ios-808080.svg?style=flat
[badge-platform-watchos]: http://img.shields.io/badge/-watchos-C0C0C0.svg?style=flat
[badge-platform-windows]: http://img.shields.io/badge/-windows-4D76CD.svg?style=flat