Files on city computer systems have been encrypted, according to a ransom note that demands payment in bitcoin.