Check at most 16 characters of the key. Fixes #7936

Signed-off-by: Hector Acosta <hector.acosta@gmail.com>