summaryrefslogtreecommitdiffstats
path: root/src/crypt/cryptrc4.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypt/cryptrc4.h')
-rw-r--r--src/crypt/cryptrc4.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/crypt/cryptrc4.h b/src/crypt/cryptrc4.h
new file mode 100644
index 0000000..12e7c65
--- /dev/null
+++ b/src/crypt/cryptrc4.h
@@ -0,0 +1,19 @@
+#ifndef CRYPTRC4_H
+#define CRYPTRC4_H
+
+#include <openssl/rc4.h>
+#include <QByteArray>
+#include <QDebug>
+
+class CryptRc4
+{
+public:
+ CryptRc4();
+
+ void rc4SetKey(QByteArray key);
+ QByteArray rc4Run(QByteArray clear);
+private:
+ RC4_KEY m_rc4Key;
+};
+
+#endif // CRYPTRC4_H