Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
OTP4U (One Time Pad For You) - Constants.java

Constants.java

Caricato da: Teutoburgo
Scarica il programma completo

  1. /*
  2.     OTP4U 0.8.0 - One Time Pad for you
  3.     Copyright (C) 2003 Pierre Blanc
  4.     Pierre Blanc: blanc_teutoburgo@yahoo.it
  5.     http://www.teutoburgo.tk
  6.     http://it.geocities.com/teutoburgo
  7.  
  8.     This program is free software; you can redistribute it and/or modify
  9.     it under the terms of the GNU General Public License as published by
  10.     the Free Software Foundation; either version 2 of the License, or
  11.     (at your option) any later version.
  12.  
  13.     This program is distributed in the hope that it will be useful,
  14.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.     GNU General Public License for more details.
  17.  
  18.     You should have received a copy of the GNU General Public License
  19.     along with this program; if not, write to the Free Software
  20.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  21.     or go to      http://www.gnu.org/copyleft/gpl.html
  22. */
  23.  
  24. package tk.teutoburgo.otp4u.constants;
  25.  
  26. import java.io.*;
  27.  
  28. public class Constants
  29. {
  30.         public static final String SEPARATOR=File.separator,
  31.                 PUBLIC_KEY_FILE="publicKey.key";
  32.     public static final String KEY_SMALL = "The public key is too small.."+
  33.                 " generate a new file", RANDOM_KEY_FILE="key4message.rnd";
  34.     public static final String PLAIN="plaintexts"+SEPARATOR,
  35.                 CIPHER="ciphertexts"+SEPARATOR, RANDOM_KEY="randomKey"+SEPARATOR,
  36.                 PUBLIC_KEY="publicKey"+SEPARATOR,
  37.                 ENTROPY=RANDOM_KEY+"entropySource"+SEPARATOR,
  38.                 KEY4KEY="key4key"+ SEPARATOR,
  39.                 KEY4KEY_FILE="key4key.rnd", CONFIG = "config"+SEPARATOR,
  40.                 CFG_FILE="otp4u.cfg", PSEUDO_RANDOM="pseudoRandom",
  41.                 BAD_PARAMETER="Bad parameter... for help, type:\notp4uwin -h"+
  42.                 " (Win)\notp4ux -h (Unix)", ERROR_XOR="Error - Public key"+
  43.                 " length isn't two times the key4key length.";
  44.  
  45.         public Constants(){}
  46. }