MailKit Documentation

## Digest |

A digest algorithm.

Syntax

C#

public enum DigestAlgorithm

Members

Member name | Value | Description |
---|---|---|

None | 0 | No digest algorithm specified. |

MD5 | 1 | The MD5 digest algorithm. |

Sha1 | 2 | The SHA-1 digest algorithm. |

RipeMD160 | 3 | The Ripe-MD/160 digest algorithm. |

DoubleSha | 4 | The double-SHA digest algorithm. |

MD2 | 5 | The MD2 digest algorithm. |

Tiger192 | 6 | The TIGER/192 digest algorithm. |

Haval5160 | 7 | The HAVAL 5-pass 160-bit digest algorithm. |

Sha256 | 8 | The SHA-256 digest algorithm. |

Sha384 | 9 | The SHA-384 digest algorithm. |

Sha512 | 10 | The SHA-512 digest algorithm. |

Sha224 | 11 | The SHA-224 digest algorithm. |

MD4 | 301 | The MD4 digest algorithm. |

Remarks

Digest algorithms are secure hashing algorithms that are used to generate unique fixed-length signatures for arbitrary data.

The most commonly used digest algorithms are currently MD5 and SHA-1, however, MD5 was successfully broken in 2008 and should be avoided. In late 2013, Microsoft announced that they would be retiring their use of SHA-1 in their products by 2016 with the assumption that its days as an unbroken digest algorithm were numbered. It is speculated that the SHA-1 digest algorithm will be vulnerable to collisions, and thus no longer considered secure, by 2018.

Microsoft and other vendors plan to move to the SHA-2 suite of digest algorithms which includes the following 4 variants: SHA-224, SHA-256, SHA-384, and SHA-512.

See Also