This demo uses jsignature download from Github

Use your finger or mouse and scribble something on the pad. Click generate to see the results.

jsignature generates a base64 string. The string can be converted to a img file or stored in a database. You can also encrypt the results to make it more secure.