Some encryption methods are also used for integrity checking and/or authentication of a message or data by allowing a user to determine whether the message or data has been altered, while authentication allows a a user to verify the source of a message.