vmime icon indicating copy to clipboard operation
vmime copied to clipboard

Support for strong digests

Open blitz opened this issue 8 years ago • 3 comments

vmime currently only supports MD5 and SHA1 as digest algorithms, both of which are broken. It would be great if there is at least support for SHA2.

blitz avatar Apr 13 '17 08:04 blitz

Hello!

In which context are you using VMime message digests? Currently, only MD5 digest is used for POP3's APOP.

vincent-richard avatar Apr 13 '17 20:04 vincent-richard

The X509Certificate class has a getFingerprint method that generates different kinds of digests: https://github.com/kisli/vmime/blob/master/src/vmime/security/cert/X509Certificate.hpp#L155

blitz avatar Apr 13 '17 20:04 blitz

Adding support for more fingerprint digest algorithms is very easy. I have added support for SHA256 in https://github.com/kisli/vmime/pull/271/files

frodegill avatar Mar 13 '22 11:03 frodegill