Tugas Error Detection
Mata Kuliah : Computer Security

NPM : 372 210 1138
1. Bila diketahui serangkaian byte
0x6f, 0x2a, 0xdc, 0x3f, 0x6d, 0x83, 0x88, 0x7b, 0xf3, 0xa7
hitunglah checksum dengan menggunakan 2’S (8-bit)
jawab
0x6f, 0x2a, 0xdc, 0x3f, 0x6d, 0x83, 0x88, 0x7b, 0xf3, 0xa7
6f+2a=99+dc=75+3f=b4+6d=21+83=a4+88=2c+7b=a6+f3=99+a7 = 41
41 = 0100 0001
1011 1110 (2nd complement )
1
1011 1111 = bf
Checksum : 41 + bf = 00
2. Hitunglah checksum dengan menggunakan 2’S dari NPM Saudara!
Jawab
NPM= 372 210 1138
0x33 + 0x37 + 0x32 + 0x32 + 0x31 + 0x30 + 0x31 + 0x31 + 0x33 + 0x38
Check sum Complement 2’s= 0x04
3. ISBN 0777-14239-2.
Berapakah nomer ISBN setelah nomer di atas?
Jawab
ISBN 0777-14239-2
nomer setelahnya : ISBN 0777-14240-?
(0x10)+(7x9)+(7x8)+(7x7)+(1x6)+(4x5)+(2x4)+(4x3)+(0x2)+
(?x1)= 214 + ? = 220 è ? = 220 – 214 = 6
Jadi nomer setelahnya adalah : ISBN 0777-14240-6
4. 5994 6134 0886 6462
Berapakah nomer CC sebelum nomer di atas?
Jawab
NOMER CC : 5994 6134 0886 6462
Nomer credit card sebelumnya adalah :
5 | 9 | 9 | 4 | 6 | 1 | 3 | 4 | 0 | 8 | 8 | 6 | 6 | 4 | 5 | ? |
x2 | | X2 | | X2 | | X2 | | X2 | | X2 | | X2 | | X2 | |
10 | 9 | 18 | 4 | 12 | 1 | 6 | 4 | 0 | 8 | 16 | 6 | 12 | 4 | 10 | ? |
10 | 9 | 18 | 4 | 12 | 1 | 6 | 4 | 0 | 8 | 16 | 6 | 12 | 4 | 10 | ? |
1+0+9+1+8+4+1+2+1+6+4+0+8+1+6+5+1+2+4+1+0+?=
66+? è Moludus 10
66 + ? = 70 è ?=70-66=4
Jadi nomer credit card sebelumnya adalah : 5994 6134 0886 6454
Tidak ada komentar:
Posting Komentar