I wrote these codes a long time ago. I have not used them since years.
C: EterPack.h
- struct TeaKey
- {
- TeaKey(std::array<DWORD, 4>src): data_(src), copy(src) {}
- operator const std::uint8_t *()const
- {
- return reinterpret_cast<const std::uint8_t *>(data_.data());
- }
- operator const DWORD *()const
- {
- return data_.data();
- }
- operator DWORD *()const
- {
- return copy.data();
- }
- private:
- std::array<DWORD, 4>data_;
- mutable std::array<DWORD, 4>copy;
- };
C: EterPack.cpp
- const TeaKey &s_adwEterPackKey()
- {
- static const TeaKey key
- {
- std::array < DWORD, 4 > {{
- 45129401UL,
- 92367215UL,
- 681285731UL,
- 1710201UL,
- }
- }
- };
- return key;
- }
- const TeaKey &s_adwEterPackSecurityKey()
- {
- static const TeaKey key
- {
- std::array < DWORD, 4 > {{
- 78952482UL,
- 527348324UL,
- 1632942UL,
- 486274726UL,
- }
- }
- };
- return key;
- }
Replace all :
with
Do not expect to be a mega protection. Only so-called hackers will not be able to find the keys with the hexEditor.
As you can see in the topic title, just hide keys in hex.