3 ms·
I disagree about golang's crypto being good. It includes insecure functions like md5 and sha1 that have no place in a crypto library. They should be in some oth
by SAI_Peregrinus 5y ago
I disagree about golang's crypto being good. It includes insecure functions like md5 and sha1 that have no place in a crypto library. They should be in some other part of the library (maybe add a "legacy" section) or just not included at all. The go stdlib crypto is also makes the (common) mistake of exposing unsafe primitives (like raw AES without a mode of operation needed to use it for encryption) at the top level of their various sections instead of a well-documented "unsafe" or "hazardous" section. And it's missing useful well-vetted high-performance options like AES-OCB (which recently went out of patent).
- rastignack 5y agoWell sha1 and md5 are used all over the place so supporting them makes a lot of sense. Most of your points are related to documentation, and a bit patronizing. For all I care most of the functionality is there, fast and reasonably well designed.