What is the role of `MessageDigest` in JCA?
`MessageDigest` is used for computing hash values (e.g., MD5, SHA-256) for data, and it ensures data integrity in Java applications.
Great job! Youâ€™ve correctly explained the role of `MessageDigest` in JCA.
Can you explain how the `MessageDigest` class can be used to compute a hash for a password in Java?