BOA QR Codes: Encrypted Receipts and How Decryption Works

Bank of Abyssinia receipt QR codes are AES-encrypted, not links like CBE's. What's inside them, why decrypting one proves nothing, and how cheki confirms the receipt with BOA.

By 6 min read

In this article9
  1. What the QR code contains
  2. The key ships in BOA's app
  3. How cheki checks a BOA QR
  4. Transfers to other banks
  5. Slip links and typed references
  6. How to scan a BOA QR code with cheki
  7. BOA QR vs CBE QR: a comparison
  8. Verifying BOA QR codes via API
  9. If BOA changes its key

Bank of Abyssinia takes a different approach to receipt QR codes than CBE. A CBE QR is a link to a receipt on CBE's server. A BOA QR holds the transaction details themselves, encrypted. That makes it look as if the QR is the receipt. It is not proof of anything, and this guide explains why and what cheki does instead.

The QR tells cheki where to look. BOA's record tells cheki what is there. Scan the QR first, paste the slip link second, and type the reference with the last 5 account digits only as a fallback.

What the QR code contains

Scan a BOA receipt QR with a normal QR app and you get a base64 string, not a link (synthetic, shortened):

code
KPHO0k4YlK/5s61BrKNnjG8dcbVjm5WqkNeCv93+8UYEinGOPAL1+Wpq6cy8...

Its decoded length is a multiple of 16 bytes, the fingerprint of a block cipher, and that is how cheki's scanner recognises a BOA QR. Decrypted, it is one comma-separated line with seven fields:

code
senderAccount,senderName,amount,reference,date,receiverAccount,receiverName

For a synthetic receipt, that line could read:

code
1000000004321,ABEBE KEBEDE,1250.5,FT26SAMPLE07,01/10/2026  14:05:00,1000000006171,TIGIST ALEMU

The key ships in BOA's app

The QR is encrypted with AES-256-CBC. BOA's own receipt viewer is a web app that decrypts the QR in your browser, so the key ships inside the JavaScript BOA serves to every visitor. Anyone can read it there. We don't reprint the key or its parameters here. Developers can read how cheki decrypts the QR in its parser, src/lib/parsers/boa.ts: https://github.com/1RB/cheki/blob/main/src/lib/...

Because the key is public, anyone can make a BOA QR that decrypts perfectly. Pick a name, an amount, a date and a reference, encrypt them, print the QR. The encryption hides the data from a casual QR app. It does nothing to prove the data is true.

How cheki checks a BOA QR

BOA publishes every slip through a JSON endpoint on cs.bankofabyssinia.com, looked up by the reference plus the last 5 digits of an account on the receipt. The QR's real value is that it carries both, so nobody has to type an account number. When you scan a BOA QR, cheki's server:

  1. Decrypts the QR and reads the reference and the receiving account.
  2. Stops with an error if the reference is not valid, or if the receiving account is missing or masked (1****42674). There is nothing to look up, and cheki does not guess.
  3. Asks BOA for the reference under the receiving account's last 5 digits.
  4. If BOA has no record there and the QR also carries a full, different source account, asks once more under that. Some slips are filed under the payer's account: a transfer within BOA, made in BOA's app, was.
  5. Fails the check if BOA's amount differs from the QR's. A QR that disagrees with the bank's record is a forgery signal.
  6. Shows that the receipt was not confirmed if BOA has no record under either account.
  7. Shows what the QR says in amber, marked decoded only, if BOA cannot be reached. Never green.

BOA's "not found" is not an HTTP error. It is a 200 with JSON, and the message "Invalid reference number" sits in the field that normally holds the payer's name. cheki treats only that exact answer as BOA saying it has no record. Any other unreadable answer means not confirmed, never fake.

Transfers to other banks

A BOA receipt for a transfer to CBE, Dashen or another bank carries a QR code too, and cheki checks it the same way: it asks BOA under the receiving account, then under the source account. We have not yet confirmed whether BOA's slip endpoint returns inter-bank transfers. If BOA has no record, cheki shows that the receipt was not confirmed. Confirm the payment another way, such as the credit on the receiving account, before you hand anything over.

Slip links and typed references

A BOA slip link (cs.bankofabyssinia.com/slip/?trx=...) carries the reference followed by the 5 account digits, so cheki splits them out and asks BOA the same way. With only a typed reference, cheki needs the last 5 digits of an account on the receipt. When BOA has nothing under the receiving account, cheki suggests trying the payer's. A bare reference is not enough for BOA.

BOA references are printed in capitals, so a lowercase ft26sample07 is just a typing difference. cheki accepts it and uppercases it.

How to scan a BOA QR code with cheki

  1. 1.

    Scan or upload

    Open cheki, tap the camera button to scan the QR code on the receipt, or upload a screenshot or photo of the receipt. cheki's QR detector finds the code even in a full receipt screenshot.

  2. 2.

    cheki recognises the QR

    A base64 payload with AES block alignment goes to the BOA check. A receipt link goes to the bank it belongs to.

  3. 3.

    cheki asks BOA

    cheki's server decrypts the QR and asks BOA for the receipt, as described above.

  4. 4.

    Read the result

    Green comes only from BOA's record. Amber decoded only means BOA could not be reached, and it is not proof of payment. Check the amount, the receiver's name and the date.

BOA QR vs CBE QR: a comparison

FeatureBOA QR codeCBE QR code
What the QR holdsThe transaction details, AES-256-CBC encryptedA plain link (mbreciept.cbe.com.et/{id})
What cheki does with itDecrypts it, then asks BOA for the receiptReads the link, then asks CBE for the receipt
Account digits to typeNone: the QR carries themNone
Can anyone make one?Yes. The key is public, so a made-up QR decrypts cleanlyAnyone can print any link, but cheki only follows links to CBE's own hosts
What turns it greenBOA's recordCBE's record

Verifying BOA QR codes via API

Send the QR payload as qrData with bank boa. No reference or account number is needed: cheki decrypts the QR and asks BOA.

bash
curl -X POST https://cheki.et/api/verify \
  -H "Content-Type: application/json" \
  -d '{"bank":"boa","qrData":"<base64 payload from the QR>"}'

When BOA confirms the receipt, the response is BOA's record (synthetic values, accounts masked):

json
{
  "success": true,
  "verified": true,
  "bank": "Bank of Abyssinia",
  "bankCode": "boa",
  "reference": "FT26SAMPLE07",
  "amount": 1250.5,
  "currency": "ETB",
  "senderName": "ABEBE KEBEDE",
  "senderAccount": "1****4321",
  "receiverName": "TIGIST ALEMU",
  "receiverAccount": "1****6171",
  "cached": false
}

When BOA cannot be reached, the response is only what the QR says, and it is not verified (trimmed):

json
{
  "success": true,
  "verified": false,
  "decodedOnly": true,
  "bank": "Bank of Abyssinia",
  "bankCode": "boa",
  "reference": "FT26SAMPLE07",
  "amount": 1250.5,
  "sourceUrl": "qr://boa"
}

When BOA has no record under the QR's accounts, the API answers HTTP 422 with success: false and the error "BOA has no receipt for the reference and accounts on this QR code." Accept only verified: true.

If BOA changes its key

If BOA rotates the key in its receipt viewer, cheki will fail to decrypt new QR codes and say so; it will not guess. A slip link, or a typed reference with the account digits, still works. If you self-host, the key cheki uses is in src/lib/parsers/boa.ts.

Frequently asked questions