Skip to content

Commit

Permalink
updated readme, fixed possible system implementation of passwords obf…
Browse files Browse the repository at this point in the history
…uscation (you may need to re-enter your project passwords)
  • Loading branch information
fabiobento512 committed Mar 4, 2018
1 parent 2f964fa commit e30c7f4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
7 changes: 4 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ https://github.com/fabiobento512/FRequest
----------------------------------
Change Log:
----------------------------------
1.1b, 03-02-2018
- Added dark theme
- Some changes on design and code to accommodate the new dark theme (thanks Jorgen-VikingGod!)
1.1b, 04-03-2018
- Added dark theme (thanks Jorgen-VikingGod!)
- Added a clear button for the filter text box
- Fixed possible system implementation of passwords obfuscation (you may need to re-enter your project passwords)
- Some code refactoring (using now override C++ keyword for instance)
----------------------------------
1.1a, 03-02-2018
- Added rename request / project to requests tree context menu (thanks pingzing!)
Expand Down
10 changes: 8 additions & 2 deletions utilfrequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,14 @@ QByteArray simpleStringObfuscationDeobfuscation(const QString& ofuscationSalt, c
QByteArray saltByteArray = ofuscationSalt.toUtf8();
QByteArray inputByteArray = input.toUtf8();

for(int i=0; i<inputByteArray.size(); i++){
inputByteArray[i] = inputByteArray[i] ^ (i < (saltByteArray.size()) ? saltByteArray[i] : i);
// Using unsigned types as they have a defined truncation in iso c++:
// https://stackoverflow.com/a/34886065
// (so the static_cast<unsigned char> below works the same in all different systems)
uint32_t saltByteArraySize = static_cast<uint32_t>(saltByteArray.size());
uint32_t inputByteArraySize = static_cast<uint32_t>(inputByteArray.size());

for(uint32_t i=0; i< inputByteArraySize; i++){
inputByteArray[i] = inputByteArray[i] ^ (i < saltByteArraySize ? saltByteArray[i] : static_cast<unsigned char>(i));
}

return inputByteArray;
Expand Down
1 change: 1 addition & 0 deletions utilfrequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <plog/Converters/NativeEOLConverter.h>
#include <pugixml/pugixml.hpp>
#include <cpp17optional/optional.hpp>
#include <cstdint>

#include <QComboBox>
#include <QDateTime>
Expand Down
2 changes: 1 addition & 1 deletion utilglobalvars.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
namespace GlobalVars{

static const QString AppName = "FRequest";
static const QString AppVersion = "1.1b (Development)";
static const QString AppVersion = "1.1b";
static const QString LastCompatibleVersionConfig = "1.1b";
static const QString LastCompatibleVersionProjects= "1.1";
static const QString AppConfigFileName = AppName + ".cfg";
Expand Down

0 comments on commit e30c7f4

Please sign in to comment.