java.lang.Object
net.ME1312.SubData.Client.Encryption.RSA
All Implemented Interfaces:
Cipher, CipherFactory

public final class RSA extends Object implements Cipher, CipherFactory
RSA Encryption Handler Class
  • Constructor Details

    • RSA

      public RSA(int keyLength, File privateKey, File publicKey) throws Exception
      Initialize RSA Cipher (Server)
      Parameters:
      keyLength - 2048, 3072, 4096 bit mode
      privateKey - Private key location (will generate if unavailable)
      publicKey - Public key location (will generate if unavailable)
      Throws:
      Exception
    • RSA

      public RSA(File publicKey) throws Exception
      Initialize RSA Cipher (Client)
      Parameters:
      publicKey - Public key location
      Throws:
      Exception
  • Method Details