More Demos

Creating Web SQL Databases with Unique Database Names

This example shows how Client-side databases can be created with different names so that it is harder to attack and steal data from.

Let's assume that a person's tweets are sensitive information, so we will store them using their Twitter username as the database name.

Inorder to view the tweets from the offline database, the user has to again enter the Twitter username.

This can be made more secure by asking the user to pick an Offline password. The database name would then be a combination of both the Username and Offline Password.

Demo

Enter the Twitter Username :