Does encryption guarantee integrity?

前端 未结 3 1995
春和景丽
春和景丽 2021-01-31 09:57

To build a secure system, can we assume that encryption guarantees integrity is true before starting a secure programming?

  • Both in symmetric and public-key encrypt
3条回答
  •  無奈伤痛
    2021-01-31 10:50

    If data integrity is a specific concern to you, you should use a cryptographic hash function, combined with an an encryption algorithm.

    But it really does come down to using the correct tool for the job. Some encryption algorithms may provide some level of checksum validation built-in, others may not.

提交回复
热议问题