Skip to content

Commit

Permalink
Update Strings Encryption.HPP
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaudiuHKS authored Jan 4, 2023
1 parent d0cd402 commit b906643
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Strings Encryption.HPP
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#pragma once

#include "Requirements.HPP"
#include "SeRnd.HPP"
#include "SeRnd.HPP" // #include SE_RND_HPP /* ".vcxproj" <PreprocessorDefinitions>SE_RND_HPP="$(SERND)";%(PreprocessorDefinitions)</PreprocessorDefinitions> */

template < int ... > struct SE_IDX_LST; template < typename, int > struct SE_APP;
template < int ... SE_LFT, int SE_RGT > struct SE_APP < ::SE_IDX_LST < SE_LFT ... >, SE_RGT > { typedef ::SE_IDX_LST < SE_LFT ..., SE_RGT > SE_RES; };
Expand All @@ -18,8 +18,13 @@ template < int ... SE_IDX > struct SE_XOR_STR < ::SE_IDX_LST < SE_IDX ... > > {
} static inline int SE_ITR{ };
};

#define XS(SE_STR) (::SE_XOR_STR < ::SE_CST_IDX_LST < sizeof (SE_STR) - 1 > ::SE_RES > (SE_STR).SE_DEC())
#define XCS(SE_STR) ((::SE_XOR_STR < ::SE_CST_IDX_LST < sizeof (SE_STR) - 1 > ::SE_RES > (SE_STR).SE_DEC()).c_str())
#ifndef NO_STRENC
# define XS(SE_STR) (::SE_XOR_STR < ::SE_CST_IDX_LST < sizeof (SE_STR) - 1 > ::SE_RES > (SE_STR).SE_DEC())
# define XCS(SE_STR) ((::SE_XOR_STR < ::SE_CST_IDX_LST < sizeof (SE_STR) - 1 > ::SE_RES > (SE_STR).SE_DEC()).c_str())
#else
# define XS(SE_STR) (SE_STR)
# define XCS(SE_STR) (SE_STR)
#endif

#define XWS(SE_STR) (::toUnicode(XCS(SE_STR)))
#define XCWS(SE_STR) (::toUnicode(XCS(SE_STR)).c_str())
Expand Down

0 comments on commit b906643

Please sign in to comment.