The SKGL library, written in Kotlin, with a shiny new API. Use this to generate & validate human readable, 20-character serial keys with up to 8 features embedded.
import dev.ravindu.skgl.SerialKey
val key = SerialKey.build("a-secret") {
features = setOf(1, 3, 5)
duration = 10
chunked = true
}
println(key.text) // XXXXX-XXXXX-XXXXX-XXXXX
val key = SerialKey("XXXXX-XXXXX-XXXXX-XXXXX", "a-secret")
val createdOn = key.createdOn
val expiresOn = key.expiresOn
val hasFeature1 = 1 in key.features
val isExpired = key.calculateIsExpired()
val daysLeft = key.calculateDaysLeft()
The TornadoFX-powered skgl-ui project can be used to generate or validate keys,