作业5(Assignment 5)

一app模块及功能

1.用户(记为C)

a.注册并登录app

b.查看快递信息,包括物流信息,到达时间等

c.查看快递员信息

2.快递员(记为B)

a.注册并登录app

b.查看用户信息,配送包裹

c.核对用户取件码,并进行交接包裹

3.app平台服务(记为A)

a.验证用户和快递员的登陆信息

b.管理快递信息

c.提供密钥,验证密文,给快递员下达能否交出包裹的指令

二交互过程

1.用户,快递员登录app

       C→A:IDC||PasswordC

       B→A:IDB||PasswordB

ID:指用户和快递员的账户信息

Password:指用户和快递员的账号密码

2.app随机生成密钥,对用户取件信息进行加密形成取件码,向用户发送取件码和取件信息,向快递员发送用户取件信息

       A→C:Information||ES(Information)

       A→B:Information

Information:为发送给用户的取件信息

ES(Information):经过密钥S加密取件信息形成的取件码

3.用户与快递员见面,用户将取件码告诉快递员,快递员向app提供取件码,app通过解密核对信息正确后,向快递员发送可以交付包裹的通知

       C→B:ES(Information)

       B→A:ES(Information)

       A→B:Resuit

Resuit:指app给快递员是否能够交付包裹的指令

————————

I. app module and function

1. User (marked as C)

a. Register and log in to the app

b. View express information, including logistics information, arrival time, etc

c. View courier information

2. Courier (marked as b)

a. Register and log in to the app

b. View user information and deliver packages

c. Check the user’s pick-up code and hand over the package

3. App platform service (marked as a)

a. Verify the login information of users and couriers

b. Manage express delivery information

c. Provide the key, verify the ciphertext, and give the courier instructions on whether to hand over the package

II. Interactive process

1. User, courier login app

C→A:IDC||PasswordC

B→A:IDB||PasswordB

ID: refers to the account information of users and couriers

Password: refers to the account and password of users and couriers

2. App randomly generates a key, encrypts the user’s pick-up information, forms a pick-up code, sends the pick-up code and pick-up information to the user, and sends the user’s pick-up information to the courier

       A→C:Information||ES(Information)

A→B:Information

Information: the pick-up information sent to the user

ES (information): the retrieval code formed by encrypting the retrieval information with key s

3. When the user meets with the courier, the user will tell the courier the pick-up code, and the courier will provide the pick-up code to the app. After the app decrypts and checks that the information is correct, it will send a notice to the courier that the package can be delivered

       C→B:ES(Information)

       B→A:ES(Information)

A→B:Resuit

Resuit: refers to the instruction of whether the app can deliver the package to the courier