Skip to content
This repository was archived by the owner on Aug 4, 2019. It is now read-only.
This repository was archived by the owner on Aug 4, 2019. It is now read-only.

Provisioning format #86

@masoodkamyab

Description

@masoodkamyab

A real-world example

version:1+expdate:4+cryptomoduleId:1+length:1+timeInterval:1+bankId:1+seed:20+name:~14
Field Length Value Binary
version 1 1 \x01
expireDate 4 220101 \x00\x03\x5b\xc5
cryptomoduleId 1 1 \x01
bankId 1 2 \x02
length 1 4 \x4
time_interval 1 60 \x3c
seed 20 abcdefghijklmnopqrst \x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74
name 14 abcdefghijklmn \x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e

After bundling:

\x01\x00\x02\xe7\x06\x01\x04<\x02abcdefghijklmnopqrstabcdefghijklmn

After adding checksum

\x01\x00\x02\xe7\x06\x01\x04<\x02abcdefghijklmnopqrstabcdefghijklmn5540

After encrypt with IV=abcdefghijklmnop and secret=abcdefghijklmnopqrstuvwxyz123456

abcdefghijklmnop\x17\x05\xb3\xe0\x0f\xd3Qcb\r\xd9\x90\x15\x1dr\xf4&\x19\xee\xf5\x15\xd2\\\x08\xbe\xd9OD\x91\xbc 
\xf4\x9e\xbd\xe0\xb9j\xd9zA\x11\x0bNX\x8e\xeb4\xe7\xee

Metadata

Metadata

Assignees

Labels

enhancementnew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions