Cryptography is used to protect confidential data in many areas. Explain how ciphertext-only attack works in 500 words with three(3) references.