Description
Secure and efficient cryptography library for Android. (Auto fix SecureRandom bugs in API 18 and below.)
EasyCrypt alternatives and similar packages
Based on the "Kotlin" category.
Alternatively, view EasyCrypt alternatives based on common mentions on social networks and blogs.
-
Balloon
:balloon: Modernized and sophisticated tooltips, fully customizable with an arrow and animations for Android. -
kotlin-android-template
Android + Kotlin + Github Actions + ktlint + Detekt + Gradle Kotlin DSL + buildSrc = โค๏ธ -
NotyKT ๐๏ธ
๐ NotyKT is a complete ๐Kotlin-stack (Backend + Android) ๐ฑ application built to demonstrate the use of Modern development tools with best practices implementation๐ฆธ. -
Material Chip View
Material Chip view. Can be used as tags for categories, contacts or creating text clouds -
DrawableToolbox
๐ ๏ธ The missing drawable toolbox for Android. Create drawables programmatically and get rid of the boring and always repeated drawable.xml files. -
Navigation Toolbar for Android
:octocat: Navigation toolbar is a slide-modeled UI navigation controller made by @Ramotion -
Capturable
๐Jetpack Compose utility library for capturing Composable content and transforming it into Bitmap Image๐ผ๏ธ -
Pdf Viewer For Android
A Lightweight PDF Viewer Android library which only occupies around 80kb while most of the Pdf viewer occupies up to 16MB space. -
Carousel Recyclerview
Carousel Recyclerview let's you create carousel layout with the power of recyclerview by creating custom layout manager. -
Pluto Debug Framework
Android Pluto is a on-device debugging framework for Android applications, which helps intercept Network calls, capture Crashes & ANRs, manipulate application data on-the-go, and much more. -
CrunchyCalendar โ awesome calendar widget for android apps
A beautiful material calendar with endless scroll, range selection and a lot more! -
SSComposeCookBook
A Collection of major Jetpack compose UI components which are commonly used.๐๐๐ -
SSCustomBottomNavigation
Animated TabBar with native control and Jetpack Navigation support..โจ๐๐ -
Permission Flow for Android
Know about real-time state of a Android app Permissions with Kotlin Flow APIs. -
Only
:bouquet: An easy way to persist and run code block only as many times as necessary on Android. -
Nextflix-Composable
Includes jetpack compose, navigation, paging, hilt, retrofit, coil, coroutines, flow.. -
EasyPermissions-ktx
๐ Kotlin version of the popular google/easypermissions wrapper library to simplify basic system permissions logic on Android M or higher. -
Compose Compiler Reports to HTML Generator
A utility (Gradle Plugin + CLI) to convert Jetpack Compose compiler metrics and reports to beautified HTML page. -
Events Calendar
Events Calendar is a user-friendly library that helps you achieve a cool Calendar UI with events mapping. You can customise every pixel of the calendar as per your wish and still achieve in implementing all the functionalities of the native android calendar in addition with adding dots to the calendar which represents the presence of an event on the respective dates. It can be done easily, you are just a few steps away from implementing your own badass looking Calendar for your very own project! -
MidJourney Images Compose Multiplatform Mobile Application
This application is developed to display the images created by MidJourney. The application is developed with Compose Multiplatform and works on many platforms including Android and iOS platforms. -
SSCustomEditTextOutLineBorder
Same as the Outlined text fields presented on the Material Design page but with some dynamic changes. ๐ ๐ -
TimelineView
A customizable and easy-to-use Timeline View library for Android. Works as a RecyclerView decorator (ItemDecoration) -
Vanilla Place Picker
Simple(vanilla) yet 'Do it all' place picker for your place picking needs in Android
WorkOS - The modern identity platform for B2B SaaS
Do you think we are missing an alternative of EasyCrypt or a related project?
README
EasyCrypt
Secure and efficient cryptography library for Android. (Auto fix SecureRandom bugs in API 18 and below.)
**Note:* EasyCrypt uses only secure implementations and all the known Crypto bugs are already dealt with properly. More information here.*
Features
- AES-256 encryption algorithm
- CBC/CTR mode of operations
- Block padding with PKCS7 (only with CBC)
- Computationally secure random salt (of cipher block size)
- Password stretching with PBKDF2
- Random IV generated on each encryption (16 bytes)
- Supports MD5, SHA1, and SHA2 hash functions
- Generate secure keys with SecureRandom or random.org
- Asymmetric encryption with RSA
- Auto handle large data by using hybrid asymmetric encryption
- Asymmetric RSA signing and verification
- Supported RSA key sizes are 2048 bits and 4096 bits
- Password analysis for strength, crack times, weakness, etc using nulab's zxcvbn4j library
Sample app
Download the sample app from play store.
Install
Add in your app's build.gradle
dependencies {
..
implementation "com.pvryan.easycrypt:easycrypt:1.3.3"
}
Usage
val eCryptSymmetric = ECSymmetric()
val eCryptAsymmetric = ECAsymmetric()
val eCryptHash = ECHash()
val eCryptPass = ECPasswords()
Symmetric key encryption
Encrypt data
eCryptSymmetric.encrypt (input, password,
object : ECResultListener {
// Optional
override fun onProgress(newBytes: Int, bytesProcessed: Long, totalBytes: Long) {
}
override fun <T> onSuccess(result: T) {
}
override fun onFailure(message: String, e: Exception) {
}
},
outputFile // Optional
)
Decrypt data
eCryptSymmetric.decrypt(input, password,
object : ECResultListener {
// Optional
override fun onProgress(newBytes: Int, bytesProcessed: Long, totalBytes: Long) {
}
override fun <T> onSuccess(result: T) {
}
override fun onFailure(message: String, e: Exception) {
}
},
outputFile // Optional
)
Asymmetric key encryption
Encrypt data
eCryptAsymmetric.generateKeyPair(object : ECRSAKeyPairListener {
override fun onSuccess(keyPair: KeyPair) {
privateKey = keyPair.private as RSAPrivateKey // Save private key
eCryptAsymmetric.encrypt(input, keyPair.public as RSAPublicKey,
object : ECResultListener {
// Optional
override fun onProgress(newBytes: Int, bytesProcessed: Long, totalBytes: Long) {
}
override fun <T> onSuccess(result: T) {
}
override fun onFailure(message: String, e: Exception) {
}
},
outputFile // Optional
)
}
override fun onFailure(message: String, e: Exception) {
e.printStackTrace()
}
}, keySize = eCryptAsymmetric.KeySizes._4096)
Decrypt data
eCryptAsymmetric.decrypt(input, privateKey,
object : ECResultListener {
// Optional
override fun onProgress(newBytes: Int, bytesProcessed: Long, totalBytes: Long) {
}
override fun <T> onSuccess(result: T) {
}
override fun onFailure(message: String, e: Exception) {
}
},
outputFile // Optional
)
Sign data
eCryptKeys.genRSAKeyPair(object : ECRSAKeyPairListener {
override fun onGenerated(keyPair: KeyPair) {
publicKey = keyPair.public as RSAPublicKey
eCryptAsymmetric.sign(input,
keyPair.private as RSAPrivateKey,
object : ECResultListener {
// Optional
override fun onProgress(newBytes: Int, bytesProcessed: Long, totalBytes: Long) {
}
override fun <T> onSuccess(result: T) {
}
override fun onFailure(message: String, e: Exception) {
}
},
signatureOutputFile)
}
override fun onFailure(message: String, e: Exception) {
}
})
Verify data
eCryptAsymmetric.verify(input, publicKey, signatureFile,
object : ECVerifiedListener {
override fun onSuccess(verified: Boolean) {
}
override fun onFailure(message: String, e: Exception) {
}
}
)
Hash data
eCryptHash.calculate(input, hashAlgorithm, // from ECHashAlgorithms
object : ECResultListener {
// Optional
override fun onProgress(newBytes: Int, bytesProcessed: Long, totalBytes: Long) {
}
override fun <T> onSuccess(result: T) {
}
override fun onFailure(message: String, e: Exception) {
}
},
outputFile // Optional
)
Analyze password
val analysis: ECPasswordAnalysis = ECPasswordAnalyzer.analyze("thisismypassword")
Input | Output |
---|---|
File | outputFile |
FileInputStream | outputFile |
ByteArray | String or outputFile (if provided) |
ByteArrayInputStream | String or outputFile (if provided) |
String | String or outputFile (if provided) |
CharSequence | String or outputFile (if provided) |
Anything else | InvalidParameterException |
Generate key with SecureRandom (pseudo-random)
val password = eCryptPass.genSecureRandomPassword(length, charArrayOf(/*symbols to be used in password*/))
Generate key with Random.org (true random)
For sample to work enter your API key in FragmentPasswords
eCryptPass.genRandomOrgPassword(
length,
"random-org-api-key", //TODO: Replace with your random.org api key
new ECPasswordListener() {
@Override
public void onFailure(@NonNull String message, @NonNull Exception e) {
}
@Override
public void onSuccess(@NonNull String password) {
}
});
License
Copyright 2018 Priyank Vasa
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.
*Note that all licence references and agreements mentioned in the EasyCrypt README section above
are relevant to that project's source code only.