mirror of
https://github.com/QuasarApp/qca.git
synced 2025-05-02 14:19:34 +00:00
14 lines
238 B
C++
14 lines
238 B
C++
|
#include"qca.h"
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
|
QCA::init();
|
||
|
|
||
|
QCString cs = (argc >= 2) ? argv[1] : "hello";
|
||
|
QString result = QCA::SHA1::hashToString(cs);
|
||
|
printf("sha1(\"%s\") = [%s]\n", cs.data(), result.latin1());
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|