userver: crypto::hash::weak Namespace Reference
Loading...
Searching...
No Matches
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