Add generation of checksums.

Without any kind of control it is tremendously difficult to enter long
strings via touch keyboards on phones.