Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// Copyright (C) 2016 Ruslan Nigmatullin <euroelessar@yandex.ru>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
4
5#include <QtCore>
6
7int main(int argc, char *argv[])
8{
9 QCoreApplication app(argc, argv);
10
12 QByteArray key = "key";
13 QByteArray message = "The quick brown fox jumps over the lazy dog";
15
18 code.addData(message);
19 code.result().toHex(); // returns "f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8"
21
25}
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
static QByteArray hash(QByteArrayView message, QByteArrayView key, QCryptographicHash::Algorithm method)
Returns the authentication code for the message message using the key key and the method method.
int main()
[0]
GLuint64 key
GLuint GLsizei const GLchar * message
QApplication app(argc, argv)
[0]