I see devs sign their apps in 2 way:

- they sign a hash of the apk, zip etc

- or thr sign directly de apk, zip etc

What is the difference? Why choosing doing an extra step and hashing it first?

Reply to this note

Please Login to reply.

Discussion

By signing the hash it's obvious they and only they acknowledge the .apk, .zip? Am I stupid?

If I could rephrase my Q would be:

- if its good enough to sign the apk/zip, why signing a hash? Isnt it an extra step?

nostr:npub1f3fvhppwgh00u2r0kq320avr984wf6wrupm6f98m4nyqfk0s28dqq03ny6 puso la respuesta correcta AFAIK. Stupid I am.

Esta resouesta de Santochi en X me parece interesante

Si solo firmas apk o zip la verificación necesita saber manejar gnupg. El hash sería más user friendly, entiendo. Y se firma el hash para mayor garantía. Eso se me ocurre.

Exacto el SO operativo anfitrión dónde será instalado el APK deberá tener el mecanismo de reconocer esa firma como válida y permitir la instalación, o en su lugar informar que contiene o no una firma inválida. En el caso del hash como lo has dicho sería para validar la autenticidad de lo descargado y que es bit a bit igual al origen

Pero solo tendrías seguridad de que es el mismo archivo que fue hasheado, pero no que lo creó el dev que pensabas, cierto?

Esta debería ser la respuesta correcta. /mod cierre el thread! ;)