Files
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00
..
a
2026-07-03 15:12:48 +08:00
a
2026-07-03 15:12:48 +08:00
a
2026-07-03 15:12:48 +08:00
a
2026-07-03 15:12:48 +08:00
a
2026-07-03 15:12:48 +08:00
a
2026-07-03 15:12:48 +08:00

Security

Usage

  1. Add JitPack to your project build.gradle
allprojects {
  repositories {
    ...
    maven { url 'https://jitpack.io' }
   }
}
  1. Add the dependency in the application build.gradle
dependencies {

implementation "com.github.FunkyMuse.KAHelpers:security:$utilsVersion"

}
  1. Simple usage
val testFile = File(filesDir, "testfile.txt")
encryptFileSafely(testFile, fileContent = "JETPACK SECURITY".toByteArray())
 val file = getEncryptedFile(testFile)
debug("TEXT DECRYPTED ${file.readText()}")
debug("TEXT ENCRYPTED ${testFile.readText()}")