simon987 / Much-Assembly-Required

Assembly programming game
GNU General Public License v3.0
930 stars 87 forks source link

New additional code for Vault doors #120

Closed sg495 closed 6 years ago

sg495 commented 6 years ago

Made all corrections requested by @simon987 in the review to #119 . In addition, I've added some cyphers for use in vault doors.

  1. Created net.simon987.server.crypto package and moved RandomStringGenerator there.
  2. Created CryptoProvider class, added a global instance to GameServer for use by game entities.
  3. Created interface for cyphers, abstract class for shift substitution cyphers, classes for no cypher, Caesar cypher, Vigenere cypher and autokey cypher.
  4. Created some Crypto exceptions.
  5. Removed static encryption/decryption methods from VaultDoor, and moved getRandomPassword() to the global CryptoProvider instance.