You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233
  1. // MANGLER.HPP
  2. //
  3. // (C) 1984-2020 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. #pragma once
  10. namespace codedweller {
  11. class Mangler {
  12. private:
  13. unsigned char Fill[256]; // Where to store the fill.
  14. unsigned int Position; // Where to put position.
  15. unsigned char Rotate(unsigned char); // Bitwise Rotate Utility.
  16. unsigned char ChaosDriver(void); // Returns current chaos.
  17. void ChaosDriver(unsigned char i); // Drives chaos forward.
  18. public:
  19. unsigned char Encrypt(unsigned char i); // Returns encrypted data.
  20. unsigned char Decrypt(unsigned char i); // Returns decrypted data.
  21. Mangler(void); // Default.
  22. };
  23. } // End namespace codedweller