Electronic Payment Systems: - Transaction Reconciliation
Electronic Payment Systems: - Transaction Reconciliation
• Transaction reconciliation
– Cash or check
Electronic Payment Systems
• RSA technicals
– Select 2 prime numbers p and q
– Let n=pq
– Select a small odd integer e relatively prime to (p-1)(q-1)
– Compute the modular inverse d of e, i.e. the solution to the
equation
de 1 mod p 1 q 1
C P( M ) M e mod n
– Decrypting the message is done by computing
S C C d mod n
Encryption
– Let us verify that the RSA scheme does in fact define an invertible
mapping of the message.
For any M Z n
P S M S P M M ed mod n.
Since d and e are modular inverses of each other
ed 1 k p 1 q 1
for some integer k . Hence,
M ed mod n MM k ( p 1)( q1) mod n
MM ( p 1) M k ( q 1) mod n
M M
( q 1) k
mod n M
(the last steps follow by applying Fermat' s theorem.)
Encryption
– Note that the security of the encryption system rests on the fact
that to compute the modular inverse of e, you need to know the
number (p-1)(q-1), which requires knowledge of the factors p and
q.
– Getting the factors p and q, in turn, requires being able to factor
the large number n=pq. This is a computationally difficult
problem.
– Some examples:
http://econ.gsia.cmu.edu/spear/rsa3.asp
Encryption
• Applications
– Direct message encryption
– Digital Signatures
• Use secret key to encrypt signature: S(Name)
• Appended signature to message and send to recipient
• Recipient decrypts signature using public key: P(S(Name)=Name
– Encrypted message and signature
• Create digital signature as above, appended to message, encrypt
message using recipients public key
• Recipient uses own secret key to decrypt message, then uses senders
public key to decrypt signature, thus verifying sender
Policy Issues