userver: crypto::hash::weak Namespace Reference
Loading...
Searching...
No Matches
crypto::hash::weak Namespace Reference

Detailed Description

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

Functions

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

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