eBanking Mobile

BSc thesis · TEI of Athens · Informatics · 2010

eBanking
Mobile

A complete mobile bank, built in 2010: a Windows Mobile client, a WCF service and a desktop Admin Panel. Running again, in your browser.

Authors
Christos Georgiou
Efstratios Provatopoulos
Supervisor
Nikitas N. Karanikolas
Stack
C# · .NET 3.5 · WCF
SQL Server · WinMo 6

Both devices are live. Try them.

01The brief

A bank in your pocket, in 2010

Build an e-banking system for phones with Windows Mobile 6.1 or later. Client and server, with a service between them.

Transactions

Balances and history. Transfers to own accounts and to other customers. Loan, card and bill payments. Standing orders.

Approvals and limits

The bank checks every transaction before it runs. Daily and monthly movement limits. Over a limit, a person approves.

Security

Encrypted SOAP messages. Mutual X.509 certificates. MD5 password hashes. Automatic logout when the phone is idle.

02C.a.S.h., the bank

A fictional bank with real mechanics

The thesis defines nine products and the rules behind them: interest, compound periods, payment windows and penalties. The simulator runs on these numbers.

Credit cards

Visa Classic
1,000 €
5% / 15%
Visa Gold
10,000 €
7% / 18%
Debit card
200 €
0%

Pay at least the minimum within 5 days, or the debt gets the penalty rate.

Deposit accounts

Monthly return1% → 2%
Six-month return2% → 10%
Closed 12 months1% → 20%

Base rate, and the reward rate for few movements in a compound period.

Fixed-rate loans

15%Consumer3–10k € · 12 months
5%Home100–200k € · 36 months
10%Personal5–150k € · 24 months

Equal parts of capital and interest each month. Early repayment costs 30–50% of the remaining interest.

03Architecture

Three tiers, all .NET

Windows Mobile 6.1

mobileClient · .NET CF 3.5

  • TouchControls
  • Camera
  • QR decoder
SOAP · mutual X.509

Admin Panel

WinForms · hosts the WCF service

  • 25 operations
  • 22:00 jobs
service
LINQ to SQL

SQL Server Express

database BSc · 13 tables

  • LINQ data context

The Admin Panel is a desktop app, and it also hosts the service at mobilewcf.com:8000. The phone calls it through a proxy generated with the .NET CF Power Toys, over basicHttpBinding with message security (Basic256Rsa15).

Here the phone calls the same operations, with the same names and return codes. Each call lights up the diagram and lands in the log.

04Database

13 tables in SQL Server

People

usersuser_types

Catalog

accountscredit_cardsloans

Holdings

product_users…_accounts…_credit_cards…_loans

Money movement

transactionstransaction_types

Services

billsusers_standing_orders

Seven transaction types: four made by people (ΜΕΤ, ΠΛΔ, ΠΛΚ, ΠΛΛ) and three made by the bank at night (ΚΤΤ, ΑΥΚ, ΑΥΔ). The simulator keeps every table and column name.

05Admin Panel

The bank's back office

A Windows Forms MDI app. It starts the service, manages products, customers and bills, and watches every transaction.

  1. Χρήστες → Επεξεργασία Χρηστών → Άνοιγμα on Χρήστος
  2. His accounts, loans, cards and standing orders. Double-click one to edit it.
  3. Κινήσεις → Κινήσεις που περιμένουν έγκριση: a transfer of Σούλα waits.
  4. Αρχείο → Λήξη Service, and the phone loses the bank.

06Mobile client

The bank in your hand

.NET Compact Framework on Windows Mobile. Touch lists that scroll like an iPhone, one form per product type.

  1. Log in as christos / 1234. The test button fills them in, as in the original code.
  2. Top right: the idle countdown. Each action resets it to 5 minutes.
  3. Διαχείριση Προϊόντων: each product shows its details and latest movements.

07Limits and approvals

Every payment is checked first

pending completed admin_approval rejected
  1. Phone: Πληρωμές - Μεταφορές → Μεταφορά Ποσού, 4 times from one account.
  2. The daily limit is 3. The 4th waits for the admin.
  3. Laptop: Κινήσεις → …περιμένουν έγκριση → Έγκριση

Pay another customer: Σούλα, GR87 0110 2040 0000 2040 5517 330.

08Standing orders

The bank works at night

22:00A timer in the Admin Panel runs the daily jobs.
  • Standing orders
  • Deposit interest
  • Card charges
  • Loan penalties
  1. Phone: Πάγιες Εντολές → Δημιουργία Νέας Εντολής
  2. Laptop: Αρχείο → Προσομοίωση: +30 ημέρες
  3. See the new movements in Κινήσεις.

The time skip is a simulator addition. The clock starts on Monday 4 October 2010.

09C.a.S.h. EasyPay

Pay the bill with a photo

In 2010, before mobile wallets: the shop prints a QR code with its account and the amount. The phone reads it and fills in the transfer.

QR code 11|100 locked transfer
  1. Phone: CaSh EasyPay, then Λήψη to take the photo.
  2. Choose your account and press Εκτέλεση.

The QR code on the receipt is real. Scan it with your own phone.

10Security

Trust on both ends

2 certificatesThe server (mobilewcf.com) and the phone (mobileclient.pfx) prove who they are. WCF signs and encrypts each message.
MD5 onlyThe database never holds a password, only its hash.
5 minutesThe phone logs out when idle. The server session ends after 6.
admin / app.config
<binding name="MutualCert">
  <security mode="Message">
    <message algorithmSuite="Basic256Rsa15"
             clientCredentialType="Certificate"/>
  </security>
</binding>
<serviceCertificate findValue="mobilewcf.com"
    storeLocation="LocalMachine" storeName="My"/>
)

11Future work

What the thesis left for later

  1. Interbank transfersOnly customers of C.a.S.h. can pay each other. Next: messages to DIAS, the Greek interbank system.
  2. Card paymentsOne payment per month. Several would let customers clear the debt before interest.
  3. Split the Admin Panel and the serviceToday they run in one process, with the database on the same PC.
  4. Scheduled tasksA Windows Scheduled Task instead of a timer that waits for 22:00.
  5. SQL dependenciesPush changes to the Admin Panel instead of polling the database.

12The original, 2010

As printed in the thesis

The Windows Mobile 6 emulator and the Admin Panel on Windows 7. Click a screenshot to open it.

Login form Main menu Products menu All products Deposit account Credit card Loan Transaction history Transaction view Payments menu Loan or card payment Bill payment
Admin Panel main window Admin Panel user form Transactions that wait for approval