In the context of the HTML5 local
storage, data encryption is not enough again the metadata
tampering [28] and data recovery. To avoid this kind of
attacks, we propose to encrypt the metadata of database's
files using the same SMP derived key previously adopted for
data encryption. In fact, an attacker can alter the name of the
database files. Therefore, the browser will consider that the
data stored there match to the attacker domain. If the domain
of the attacker gains accidentally the permission of the user to
manage local data, the attacker will have the full access. These
attacks are no longer possible with the metadata encryption.