The short answer
Encryption keeps a request private. It does not prove the request is the one the user made. If the key lives in the app, an attacker can extract it, decrypt a request, change the amount or the receiver, encrypt it again and send it. The server sees a well-formed request and carries it out. A signature closes that gap: the server recomputes it from what arrived, and refuses anything that does not match.
Why encryption alone failed
The app in question already encrypted its requests, and the team reasonably believed that made transfers safe. The weakness was where the key lived. It was written into the app’s code.
An app on someone’s phone is not a secret. Anyone can download it, take it apart and read what is inside, and that is what happened here. With the key in hand, the attacker could do everything the app could do: read a transfer request, swap the receiver, encrypt it again with the same key and send it on. Nothing on the server could tell the difference, because the altered request was encrypted exactly as a real one would be. This is a man-in-the-middle attack, and encryption with a known key does nothing to stop it.
The lesson is wider than this one app. A key that ships inside an app should be treated as public. Hiding it better buys time, not safety.
What a signature adds
A signature is a fingerprint of the request, made with a secret that only the app and the server share. The app builds it from the request as the user made it, the secret key and a one-time value, and sends it along with the request. A signature made this way is usually an HMAC.
The server does the same sum with what it received. If one character of the request changed on the way, the two signatures differ and the request is rejected before any money moves. A signature is a one-way hash, so there is nothing to decrypt and nothing to edit: an attacker who changes the request cannot produce a matching signature without the key.
The one-time value matters too. It makes each signature different even for identical requests, so a captured request cannot simply be sent again later.
With encryption only
Pay 120.00 to Sara
EncryptedPay 120.00 to Sara a stranger
It decrypts fine, so nothing looks wrong.
With a signature
Pay 120.00 to Sara
EncryptedSignedPay 120.00 to Sara a stranger
The signature does not fit what arrived.
Agree the key, never ship it
A signature is only as good as its key, and the first failure was a key in the code. So the key is not in the code at all. When the app starts, the app and the server agree on a fresh key through a key exchange: each side contributes a part, and both arrive at the same secret without that secret ever being sent.
Taking the app apart now yields nothing useful, because the key did not exist until this session began and will not be used by the next one. One key is agreed at startup and reused for every request in that session.
Sign the answers too
Requests are half of the conversation between an app and its API. If only requests are signed, someone in the middle can still change what the server says back, such as a balance or a confirmation. Sign responses the same way and have the app check them, so neither side acts on something that was changed in transit.
The cost: a slower start
The hard part was not the signing. It was the key. A longer key is harder to break, and it also takes longer to generate, and the user feels that as an app that opens slowly. On older phones the difference is easy to notice.
We settled it by measuring. The key size was chosen by weighing strength against startup time on real devices, and the key is created once, at a fresh start of the app, never per request. The user pays that cost one time per session and every request after it is fast.
What signing does not solve
Signing proves a request was not changed after the app made it. It does not prove the app itself is genuine, and it does not protect a phone the attacker fully controls. Treat it as one layer of application security. Keep transport security in place, check that the app is talking to your real server, apply limits and approvals to high-risk actions on the server, and watch for rejected signatures, because a rise in them is someone probing.
Questions to ask of your own app
Is any key or secret written into the app?
If it is, assume it is already known. Anything that ships inside an app can be extracted, so nothing that protects money should depend on it staying hidden.
Does the server verify every money-moving request before acting on it?
It should recompute the signature from what arrived and refuse anything that does not match, before the transfer starts, not after.
Does the signature cover the whole request?
Amount, receiver and every field that matters. A field left out of the signature can be changed without the server noticing.
Can a captured request be sent again?
Not if each request carries a one-time value inside its signature. The server accepts each value once, so a replay is refused.
Are responses signed and checked by the app?
They should be. Otherwise a balance or a confirmation can still be changed on its way back to the user.
How long does the key exchange add to startup on a slow phone?
Measure it on a real, older device. If the app opens noticeably slower, revisit the key size before your users feel it.
Do rejected signatures raise an alert?
They should. A rise in rejected signatures is the earliest sign that someone is probing the app.