Skip to content

Explanation of Classes in the Project #1

Description

@TheJengo

Relations of Classes:
class-diagram

# CLASS RSA:

Attributes:

  • +p : int //1. prime
  • +q : int //2. prime
  • #PublicKey : int
  • #PrivateKey : int
  • #Word : int //plaintext
  • +errMessage : string // if something goes wrong

Behaviors:

  • +Constructor : (p,q,PublicKey,Word)
  • #isPrime(int p) : int
  • #GCD(int a, int b) : int
  • #ExtendedEuclid(int e, int d) : int
  • +ToBinary(int a) : int[] //Modular Arithmetic for big powers
  • +Respond(int Key, int p, int q, int Word) : int
  • +RSAOutput(): abstract int

# CLASS ENCRYPT:

Attributes:

Behaviors:

  • +Constructor : (p,q,PublicKey,Word)
    • RSAOutput : override int

# CLASS DECRYPT:

Attributes:

Behaviors:

  • +Constructor : (p,q,PublicKey,Word)
    • RSAOutput : override int

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions