Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

mangler.hpp 1017B

12345678910111213141516171819202122232425262728293031323334
  1. // MANGLER.HPP
  2. //
  3. // (C) 1984-2009 MicroNeil Research Corporation
  4. // Derived from Version 1 of Mangler Encryption Algorythm, 1984.
  5. // Derived from Version 2 of Mangler Encryption Algorythm, 1998.
  6. //
  7. // 20020119 _M Mangler V3.
  8. // Mangler object header file.
  9. // If it's already been included, it doesn't need to be included again.
  10. #ifndef _MANGLER_
  11. #define _MANGLER_
  12. class MANGLER {
  13. private:
  14. unsigned char Fill[256]; // Where to store the fill.
  15. unsigned int Position; // Where to put position.
  16. unsigned char Rotate(unsigned char); // Bitwise Rotate Utility.
  17. unsigned char ChaosDriver(void); // Returns current chaos.
  18. void ChaosDriver(unsigned char i); // Drives chaos forward.
  19. public:
  20. unsigned char Encrypt(unsigned char i); // Returns encrypted data.
  21. unsigned char Decrypt(unsigned char i); // Returns decrypted data.
  22. MANGLER(void); // Default.
  23. };
  24. #endif