Saving Data on Android



Download 19,28 Mb.
Pdf ko'rish
bet36/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   32   33   34   35   36   37   38   39   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

PBKDF2WtihHmacSHA1
.
7. Pass the 
pbKeySpec
 to the 
secretKeyFactor.generateSecret
 method and 
assign the 
encoded
 property which returns the key in bytes.
8. Finally, 
keySpec
 is produced to use when you initialize the 
Cipher
.
All of these steps seem a bit complex, but it’s the kind of thing that’s always the 
same to use; only the data changes. There are still a few steps to do, so let’s get to it!
Using an ini/aliza/on vector
The recommended mode of encryption when using AES is the 
cipher block 
chaining
, or 
CBC
. This mode takes each next unencrypted block of data and uses the 
XOR
 operation with the previous encrypted block. One problem with this procedure 
is that the first block is less unique as subsequent blocks. If one encrypted message 
started the same as another message, the beginning blocks of the two messages 
would be the same. This would help an attacker to find out what the message(s) are. 
To solve this problem, you’ll create an 

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   32   33   34   35   36   37   38   39   ...   292




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish