getDigest, toHexString and related Components.* stuff can be deleted, since it is not used in this app.