userver: crypto::hash::weak Namespace Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
crypto::hash::weak Namespace Reference

Broken cryptographic hashes, must not be used except for compatibility. More...

Functions

std::string Md5 (std::string_view data, OutputEncoding encoding=OutputEncoding::kHex)
 Calculates MD5, output format depends from encoding param.
 

Detailed Description

Broken cryptographic hashes, must not be used except for compatibility.

Function Documentation

◆ Md5()

std::string crypto::hash::weak::Md5 ( std::string_view  data,
OutputEncoding  encoding = OutputEncoding::kHex 
)

Calculates MD5, output format depends from encoding param.

Parameters
encodingresult could be returned as binary string or encoded
Exceptions
CryptoExceptioninternal library exception