Sese Framework
2.3.0
A cross-platform framework
|
Message digest utility class. More...
#include <MessageDigest.h>
Public Types | |
enum | Type { MD5 , SHA1 , SHA256 } |
using | InputStream = sese::io::InputStream |
Public Member Functions | |
MessageDigest ()=delete | |
Public Member Functions inherited from sese::NotInstantiable | |
NotInstantiable ()=delete | |
virtual | ~NotInstantiable ()=default |
NotInstantiable (const NotInstantiable &)=delete | |
NotInstantiable & | operator= (const NotInstantiable &)=delete |
Static Public Member Functions | |
static std::unique_ptr< char[]> | digest (Type type, const InputStream::Ptr &source, bool is_cap=false) noexcept |
static std::unique_ptr< char[]> | digest (Type type, InputStream *source, bool is_cap=false) noexcept |
Message digest utility class.
|
delete |
|
staticnoexcept |
Perform digest
type | Digest algorithm type |
source | Source of information |
is_cap | Whether letters are uppercase |
nullptr | Digest failed |
References sese::MD5Util::encode(), sese::SHA1Util::encode(), and sese::SHA256Util::encode().
|
staticnoexcept |
References sese::MD5Util::encode(), sese::SHA1Util::encode(), and sese::SHA256Util::encode().