The New York City Police Department’s fingerprint database was hit with ransomware in October 2018, a local newspaper learned.