IndexUtils

object IndexUtils

Functions

Link copied to clipboard
fun getFingerprint(certificate: String): String
Link copied to clipboard
fun getPackageSigner(signerBytes: ByteArray): String

Get the standard, lowercase SHA-256 fingerprint used to represent an APK or JAR signing key. NOTE: this does not handle signers that have multiple X.509 signing certificates.

Link copied to clipboard
fun getsig(signerBytes: ByteArray): String

Get the fingerprint used to represent an APK signing key in F-Droid. This is a custom fingerprint algorithm that was kind of accidentally created. It is now here only for backwards compatibility. It should only ever be used for writing the sig value out to index-v1.json.