From a652079dfd0820f31e6bb026f29b5c9a9155f328 Mon Sep 17 00:00:00 2001 From: suawek Date: Mon, 15 Feb 2010 17:22:33 +0100 Subject: [PATCH] Initial commit. --- alphabet.h | 29 ++++++++++++ alphabet.h~ | 29 ++++++++++++ base64.ui | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 208 insertions(+) create mode 100644 alphabet.h create mode 100644 alphabet.h~ create mode 100644 base64.ui diff --git a/alphabet.h b/alphabet.h new file mode 100644 index 0000000..6cca98e --- /dev/null +++ b/alphabet.h @@ -0,0 +1,29 @@ +#ifndef ALPHABET_H +#define ALPHABET_H + /** + * @def ALPHABET_SIZE + * alphabet size (in base64 encoding this is \e equal to 64) + * + */ + #define ALPHABET_SIZE 64 + + /** + * @namespace base64 + * groups base64 manipulation methods and objects + * + */ + namespace base64 + { + static const char alphabet[ALPHABET_SIZE] = + { + 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', + 'I', 'J', 'K', 'L', 'M' ,'N', 'O', 'P', + 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', + 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', + 'g', 'h', 'i', 'j', 'k', 'l', 'm' ,'n', + 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', + 'w', 'x', 'y', 'z', '0', '1', '2', '3', + '4', '5', '6', '7', '8', '9', '+', '/' + }; + }; +#endif diff --git a/alphabet.h~ b/alphabet.h~ new file mode 100644 index 0000000..6cca98e --- /dev/null +++ b/alphabet.h~ @@ -0,0 +1,29 @@ +#ifndef ALPHABET_H +#define ALPHABET_H + /** + * @def ALPHABET_SIZE + * alphabet size (in base64 encoding this is \e equal to 64) + * + */ + #define ALPHABET_SIZE 64 + + /** + * @namespace base64 + * groups base64 manipulation methods and objects + * + */ + namespace base64 + { + static const char alphabet[ALPHABET_SIZE] = + { + 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', + 'I', 'J', 'K', 'L', 'M' ,'N', 'O', 'P', + 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', + 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', + 'g', 'h', 'i', 'j', 'k', 'l', 'm' ,'n', + 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', + 'w', 'x', 'y', 'z', '0', '1', '2', '3', + '4', '5', '6', '7', '8', '9', '+', '/' + }; + }; +#endif diff --git a/base64.ui b/base64.ui new file mode 100644 index 0000000..d546592 --- /dev/null +++ b/base64.ui @@ -0,0 +1,150 @@ + + + MainWindow + + + + 0 + 0 + 554 + 420 + + + + MainWindow + + + + + + + + + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + + + + + Filename: + + + + + + + + + + Select... + + + + + + + Load + + + + + + + Save + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + false + + + color: rgb(85, 170, 0) + + + Encrypt + + + false + + + + + + + color: rgb(255, 85, 0) + + + Decrypt + + + + + + + + + + + + + + + + groupBox + textBrowser + + verticalSpacer + verticalSpacer + pushButton + pushButton_2 + groupBox + textEdit + frame + lineEdit + + + + + 0 + 0 + 554 + 21 + + + + + + + + -- 2.11.4.GIT