text stringlengths 3 1.18M |
|---|
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* PGPKeyGeneratorFrame.java
* Contains code from ppgp. See http://ppgp.sf.net
* Created on 08.09.2008, 00:05:58
*/
package jcrypter.pgp;
import java.util.ResourceBundle;
/**
*
* @author uli
*/
public class ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* PGPCrypterFrame.java
*
* Created on 08.09.2008, 00:56:38
*/
package jcrypter.pgp;
import jcrypter.utils.keyfinder.PGPKeyReader;
import jcrypter.*;
import java.io.*;
import java.security.NoSuchProviderException... |
/*
* RSACrypterFrame.java
*
* Created on 20. September 2008, 15:58
*/
package jcrypter.rsa;
import jcrypter.utils.KeyFinder;
import java.io.*;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.interfaces.RSAPr... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import java.security.Key;
import java.security.SecureRandom;
import javax.crypto.KeyGenerator;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author uli
*/
public class JCESymme... |
/*
* DigestFrame.java
*
* Created on 7. Oktober 2008, 20:14
*/
package jcrypter.digest;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import jcrypter.JCrypterFrame;
import java.io.... |
/*
* RSACrypterFrame.java
*
* Created on 20. September 2008, 15:58
*/
package jcrypter.asymmetric;
import jcrypter.utils.KeyGeneratorFrame;
import java.security.InvalidAlgorithmParameterException;
import jcrypter.utils.keyfinder.KeyFinder;
import java.io.*;
import java.security.InvalidKeyException;
import java.se... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* CipherModePaddingSelectorDialog.java
*
* Created on 08.09.2008, 14:04:07
*/
package jcrypter.utils;
import java.util.ResourceBundle;
import javax.swing.JFrame;
/**
*
* @author uli
*/
public class CipherMo... |
/*
* Base64UtilFrame.java
*
* Created on 10. Oktober 2008, 21:19
*/
package jcrypter.utils;
import java.io.*;
import java.util.ResourceBundle;
import java.util.logging.*;
import javax.swing.JFileChooser;
import jcrypter.JCrypterFrame;
import org.bouncycastle.util.encoders.Base64;
/**
*
* @author uli
*/
publi... |
package jcrypter.utils;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.u... |
package jcrypter.utils;
import java.io.*;
import java.util.*;
/**
* <h3>MersenneTwister and MersenneTwisterFast</h3>
* <p><b>Version 13</b>, based on version MT199937(99/10/29)
* of the Mersenne Twister algorithm found at
* <a href="http://www.math.keio.ac.jp/matumoto/emt.html">
* The Mersenne Twister Home Page... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter.utils.keyfinder;
import java.io.File;
import java.util.List;
/**
*
* @author uli
*/
public interface KeyReader {
public void readPublicKey(File file, KeyFinder instance);
public void readPr... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter.utils.keyfinder;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.security.KeyFactory;
import java.security.NoSuchAlgori... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter.utils.keyfinder;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.util.HashMap;
import jav... |
/*
* HMACFrame.java
*
* Created on 10. Oktober 2008, 13:36
*/
package jcrypter.hmac;
import java.io.*;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.util.ResourceBundle;
import java.util.logging.*;
import javax.crypto.Mac;
import java... |
/*
* LaTeXSettingsDialog.java
*
* Created on 17. Oktober 2008, 17:41
*/
package jcrypter.password;
import java.util.ResourceBundle;
/**
*
* @author uli
*/
public class LaTeXSettingsDialog extends javax.swing.JDialog
{
/** Creates new form LaTeXSettingsDialog
* @param parent
* @param modal
... |
/*
* PasswordGeneratorFrame.java
*
* Created on 29. September 2008, 19:21
*/
package jcrypter.password;
import jcrypter.*;
import java.util.ResourceBundle;
import javax.swing.JOptionPane;
import javax.swing.SpinnerNumberModel;
/**
*
* @author uli
*/
public class PasswordGeneratorFrame extends javax.swing.JFra... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter.password;
import java.security.SecureRandom;
import java.util.LinkedList;
import java.util.List;
import jcrypter.utils.MersenneTwisterFast;
/**
*
* @author uli
*/
public class PasswordGenerator
{
... |
/*
* PasswordListGeneratorFrame.java
*
* Created on 16. Oktober 2008, 16:49
*/
package jcrypter.password;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.l... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* ECKeyGeneratorFrame.java
*
* Created on 10.09.2008, 23:25:49
*/
package jcrypter.signature;
import java.awt.EventQueue;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOEx... |
/*
* RSASignatureAlgorithmSelectorDialog.java
*
* Created on 24. September 2008, 19:54
*/
package jcrypter.signature;
/**
*
* @author uli
*/
public class RSASignatureAlgorithmSelectorDialog extends javax.swing.JDialog {
/** Creates new form RSASignatureAlgorithmSelectorDialog */
public RSASignatu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* SignatureFrame.java
*
* Created on 10.09.2008, 19:57:18
*/
package jcrypter.signature;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProvid... |
/*
* JCrypterFrame.java
*
* Created on 26. Juli 2008, 17:47
* http://1x1.googlecode.com
* GNUCrypto version: Revision 122
* Released under Apache License
*/
package jcrypter;
import jcrypter.password.PasswordGeneratorFrame;
import java.io.ByteArrayInputStream;
import jcrypter.utils.CipherModePaddingSelectorDial... |
package jtimebomb;
/*
* JTImeBombFrame.java
*
* Created on 28. Juli 2008, 12:22
*/
import java.awt.Color;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.SpinnerNumberModel;
/**
*
* @author uli
*/
public class JTimeBombFrame extends javax.swing.JFrame {
//Custom components
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.security.Key;
import java.security.KeyPair;
import java.security.PrivateKey;
import java.se... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import gnu.crypto.util.Base64;
import java.io.UnsupportedEncodingException;
import java.security.GeneralSecurityException;
import java.security.Key;
import java.security.MessageDigest;
import javax.cr... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import java.io.*;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.SecureRandom;
import java.util.List;
import org.junit.After;
import org.junit.AfterClass;
im... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import gnu.crypto.cipher.CipherFactory;
import gnu.crypto.cipher.IBlockCipher;
import gnu.crypto.hash.HashFactory;
import gnu.crypto.hash.IMessageDigest;
import gnu.crypto.mode.IMode;
import gnu.crypt... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import java.security.KeyPair;
import java.sql.SQLException;
import java.util.List;
/**
*
* @author uli
*/
public interface KeyStorageProvider {
public void setup() throws SQLException;
pub... |
BlockCipher engine = new TwofishEngine();
BufferedBlockCipher cipher = new PaddedBufferedBlockCipher(new CBCBlockCipher(engine));
//Get data and encrypt
byte[] passwordBytes = new String(passwordField.getPassword()).getBytes();
byte[] input;
//Base64-decode the ciphertext
if(decryptCheckbox.isSelected()) {input = Base6... |
/*
* RSACrypterFrame.java
*
* Created on 20. September 2008, 15:58
*/
package jcrypter.rsa;
import jcrypter.utils.KeyFinder;
import java.io.*;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.PrivateKey;
imp... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import java.security.Key;
import java.security.SecureRandom;
import javax.crypto.KeyGenerator;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author uli
*/
public class JCESymme... |
/*
* PasswordGeneratorFrame.java
*
* Created on 29. September 2008, 19:21
*/
package jcrypter;
import java.security.SecureRandom;
import java.util.ResourceBundle;
import javax.swing.JOptionPane;
import javax.swing.SpinnerNumberModel;
/**
*
* @author uli
*/
public class PasswordGeneratorFrame extends javax.sw... |
/*
* RSACrypterFrame.java
*
* Created on 20. September 2008, 15:58
*/
package jcrypter.asymmetric;
import jcrypter.utils.KeyGeneratorFrame;
import java.security.InvalidAlgorithmParameterException;
import jcrypter.utils.KeyFinder;
import java.io.*;
import java.security.InvalidKeyException;
import java.security.Key... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* CipherModePaddingSelectorDialog.java
*
* Created on 08.09.2008, 14:04:07
*/
package jcrypter.utils;
import java.util.ResourceBundle;
import javax.swing.JFrame;
/**
*
* @author uli
*/
public class CipherMo... |
package jcrypter.utils;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.u... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.security.KeyFactory;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.s... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* ECKeyGeneratorFrame.java
*
* Created on 10.09.2008, 23:25:49
*/
package jcrypter.signature;
import java.awt.EventQueue;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOEx... |
/*
* DHServerFrame.java
*
* Created on 27. September 2008, 15:04
*/
package jcrypter.dh;
import javax.swing.SpinnerNumberModel;
/**
*
* @author uli
*/
public class DHServerFrame extends javax.swing.JFrame {
/** Creates new form DHServerFrame */
public DHServerFrame() {
initComponents();
... |
/*
* RSASignatureAlgorithmSelectorDialog.java
*
* Created on 24. September 2008, 19:54
*/
package jcrypter.signature;
/**
*
* @author uli
*/
public class RSASignatureAlgorithmSelectorDialog extends javax.swing.JDialog {
/** Creates new form RSASignatureAlgorithmSelectorDialog */
public RSASignatu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* SignatureFrame.java
*
* Created on 10.09.2008, 19:57:18
*/
package jcrypter.signature;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProvid... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* PGPKeyGeneratorFrame.java
* Contains code from ppgp. See http://ppgp.sf.net
* Created on 08.09.2008, 00:05:58
*/
package jcrypter.pgp;
/**
*
* @author uli
*/
public class PGPKeyGeneratorFrame extends javax... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* PGPCrypterFrame.java
*
* Created on 08.09.2008, 00:56:38
*/
package jcrypter.pgp;
import jcrypter.pgp.PGPKeyRingReader;
import jcrypter.*;
import java.io.*;
import java.security.NoSuchProviderException;
impor... |
package jcrypter.pgp;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Vector;
import org.bouncycastle.openpgp.*;
/**
*
* @auth... |
/*
* JCrypterFrame.java
*
* Created on 26. Juli 2008, 17:47
* http://1x1.googlecode.com
* GNUCrypto version: Revision 122
* Released under Apache License
*/
package jcrypter;
import java.io.ByteArrayInputStream;
import jcrypter.utils.CipherModePaddingSelectorDialog;
import jcrypter.pgp.PGPKeyRingReader;
import ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author User
*/
public enum mtOperator
{
MULT, PLUS, MINUS
} |
/*
* mtSettingsFrame.java
*
* Created on 4. April 2008, 17:14
*/
import java.util.Vector;
/**
*
* @author User
*/
public class mtSettingsFrame extends javax.swing.JFrame {
//Variables
private Vector<Integer> rows = new Vector<Integer>();
private Vector<mtOperator> operators = new Vector<mt... |
import java.io.*;
import javax.swing.*;
/*
* mtStatisticsFrame.java
*
* Created on 4. April 2008, 22:53
*/
/**
*
* @author User
*/
public class mtStatisticsFrame extends javax.swing.JFrame {
/** Creates new form mtStatisticsFrame */
public mtStatisticsFrame(mtMainFrame pFrame) {
initCo... |
import java.awt.Color;
import java.text.DecimalFormat;
import java.util.Random;
import java.awt.event.*;
/*
* mtMainFrame.java
*
* Created on 4. April 2008, 19:45
*/
import javax.swing.*;
/**
*
* @author User
*/
public class mtMainFrame extends javax.swing.JFrame {
/** Creates new form mtMainFrame *... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* JRocketStartSimulatorFrame.java
*
* Created on 07.01.2009, 18:55:06
*/
package jrocketstartsimulator;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Locale;
import java.util.ResourceB... |
package jtimebomb;
/*
* JTImeBombFrame.java
*
* Created on 28. Juli 2008, 12:22
*/
import java.awt.Color;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.SpinnerNumberModel;
/**
*
* @author uli
*/
public class JTimeBombFrame extends javax.swing.JFrame {
//Custom components
... |
package jmailloadgenerator;
import java.io.*;
import java.util.*;
/**
* <h3>MersenneTwister and MersenneTwisterFast</h3>
* <p><b>Version 13</b>, based on version MT199937(99/10/29)
* of the Mersenne Twister algorithm found at
* <a href="http://www.math.keio.ac.jp/matumoto/emt.html">
* The Mersenne Twister Home ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* JMailLoadGeneratorFrame.java
*
* Created on 20.11.2008, 21:19:59
*/
package jmailloadgenerator;
import com.sun.mail.smtp.SMTPSendFailedException;
import java.io.File;
import java.io.FileReader;
import java.io.... |
package jpasswordgenerator.utils;
import java.io.*;
import java.util.*;
/**
* <h3>MersenneTwister and MersenneTwisterFast</h3>
* <p><b>Version 13</b>, based on version MT199937(99/10/29)
* of the Mersenne Twister algorithm found at
* <a href="http://www.math.keio.ac.jp/matumoto/emt.html">
* The Mersenne Twister... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jpasswordgenerator.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.security.SecureRandom;
import java.util.LinkedList;
import java.util.List;
import java.util.... |
/*
* LaTeXSettingsDialog.java
*
* Created on 17. Oktober 2008, 17:41
*/
package jpasswordgenerator.password;
import java.util.ResourceBundle;
/**
*
* @author uli
*/
public class LaTeXSettingsDialog extends javax.swing.JDialog
{
/** Creates new form LaTeXSettingsDialog
* @param parent
* @param m... |
/*
* PasswordGeneratorFrame.java
*
* Created on 29. September 2008, 19:21
*/
package jpasswordgenerator.password;
import java.security.SecureRandom;
import jpasswordgenerator.utils.PasswordGenerator;
import java.util.ResourceBundle;
import javax.swing.JOptionPane;
import javax.swing.SpinnerNumberModel;
/**
*
* ... |
/*
* PasswordListGeneratorFrame.java
*
* Created on 16. Oktober 2008, 16:49
*/
package jpasswordgenerator.password;
import jpasswordgenerator.utils.PasswordGenerator;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.Resou... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.security.Key;
import java.security.KeyPair;
import java.security.PrivateKey;
import java.se... |
package jcrypter.utils.keyfinder;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStream;
import java.util.*;
import org.bouncycastle.openpgp.*;
/**
*
* @author uli
*/
public class PGPKeyReader implements KeyReader
{
public P... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import gnu.crypto.util.Base64;
import java.io.UnsupportedEncodingException;
import java.security.GeneralSecurityException;
import java.security.Key;
import java.security.MessageDigest;
import javax.cr... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import java.io.*;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.SecureRandom;
import java.util.List;
import org.junit.After;
import org.junit.AfterClass;
im... |
/*
* StatisticalAnalysisFrame.java
*
* Created on 20. Oktober 2008, 14:36
*/
package jcrypter.cryptanalysis;
import java.io.*;
import java.util.Comparator;
import java.util.Iterator;
import java.util.ResourceBundle;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.Vector;
import java.util.log... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import gnu.crypto.cipher.CipherFactory;
import gnu.crypto.cipher.IBlockCipher;
import gnu.crypto.hash.HashFactory;
import gnu.crypto.hash.IMessageDigest;
import gnu.crypto.mode.IMode;
import gnu.crypt... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import java.security.KeyPair;
import java.sql.SQLException;
import java.util.List;
/**
*
* @author uli
*/
public interface KeyStorageProvider {
public void setup() throws SQLException;
pub... |
/*
* DHServerFrame.java
*
* Created on 27. September 2008, 15:04
*/
package jcrypter.dh;
import javax.swing.SpinnerNumberModel;
/**
*
* @author uli
*/
public class DHServerFrame extends javax.swing.JFrame {
/** Creates new form DHServerFrame */
public DHServerFrame() {
initComponents();
... |
BlockCipher engine = new TwofishEngine();
BufferedBlockCipher cipher = new PaddedBufferedBlockCipher(new CBCBlockCipher(engine));
//Get data and encrypt
byte[] passwordBytes = new String(passwordField.getPassword()).getBytes();
byte[] input;
//Base64-decode the ciphertext
if(decryptCheckbox.isSelected()) {input = Base6... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* PGPKeyGeneratorFrame.java
* Contains code from ppgp. See http://ppgp.sf.net
* Created on 08.09.2008, 00:05:58
*/
package jcrypter.pgp;
import java.util.ResourceBundle;
/**
*
* @author uli
*/
public class ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* PGPCrypterFrame.java
*
* Created on 08.09.2008, 00:56:38
*/
package jcrypter.pgp;
import jcrypter.utils.keyfinder.PGPKeyReader;
import jcrypter.*;
import java.io.*;
import java.security.NoSuchProviderException... |
/*
* RSACrypterFrame.java
*
* Created on 20. September 2008, 15:58
*/
package jcrypter.rsa;
import jcrypter.utils.KeyFinder;
import java.io.*;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.interfaces.RSAPr... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import java.security.Key;
import java.security.SecureRandom;
import javax.crypto.KeyGenerator;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author uli
*/
public class JCESymme... |
/*
* DigestFrame.java
*
* Created on 7. Oktober 2008, 20:14
*/
package jcrypter.digest;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import jcrypter.JCrypterFrame;
import java.io.... |
/*
* AsymmetricCrypterFrame.java
*
* Created on 20. September 2008, 15:58
*/
package jcrypter.asymmetric;
import jcrypter.utils.KeyGeneratorFrame;
import java.security.InvalidAlgorithmParameterException;
import jcrypter.utils.keyfinder.KeyFinder;
import java.io.*;
import java.security.InvalidKeyException;
import j... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* CipherModePaddingSelectorDialog.java
*
* Created on 08.09.2008, 14:04:07
*/
package jcrypter.utils;
import java.awt.EventQueue;
import java.security.NoSuchAlgorithmException;
import java.util.ResourceBundle;
i... |
/*
* Base64UtilFrame.java
*
* Created on 10. Oktober 2008, 21:19
*/
package jcrypter.utils;
import java.io.*;
import java.util.ResourceBundle;
import java.util.logging.*;
import javax.swing.JFileChooser;
import jcrypter.JCrypterFrame;
import org.bouncycastle.util.encoders.Base64;
/**
*
* @author uli
*/
publi... |
package jcrypter.utils;
import java.awt.Component;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProvi... |
package jcrypter.utils;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.SecureRandom;
import java.ut... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter.utils;
import java.security.SecureRandom;
/**
*
* @author uli
*/
public class Utils
{
public static int[] byteToInt(byte[] input)
{
int[] array = new int[input.length / 4]; //sizeof... |
package jcrypter.utils;
import java.io.*;
import java.util.*;
/**
* <h3>MersenneTwister and MersenneTwisterFast</h3>
* <p><b>Version 13</b>, based on version MT199937(99/10/29)
* of the Mersenne Twister algorithm found at
* <a href="http://www.math.keio.ac.jp/matumoto/emt.html">
* The Mersenne Twister Home Page... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter.utils.keyfinder;
import java.io.File;
import java.util.List;
/**
*
* @author uli
*/
public interface KeyReader {
public void readPublicKey(File file, KeyFinder instance);
public void readPr... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter.utils.keyfinder;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
import java.security.NoS... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter.utils.keyfinder;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.util.HashMap;
import jav... |
/*
* HMACFrame.java
*
* Created on 10. Oktober 2008, 13:36
*/
package jcrypter.hmac;
import java.io.*;
import java.security.InvalidKeyException;
import java.security.Key;
import java.security.NoSuchAlgorithmException;
import java.util.ResourceBundle;
import java.util.logging.*;
import javax.crypto.Mac;
import java... |
/*
* LaTeXSettingsDialog.java
*
* Created on 17. Oktober 2008, 17:41
*/
package jcrypter.password;
import java.util.ResourceBundle;
/**
*
* @author uli
*/
public class LaTeXSettingsDialog extends javax.swing.JDialog
{
/** Creates new form LaTeXSettingsDialog
* @param parent
* @param modal
... |
/*
* PasswordGeneratorFrame.java
*
* Created on 29. September 2008, 19:21
*/
package jcrypter.password;
import jcrypter.*;
import java.util.ResourceBundle;
import javax.swing.JOptionPane;
import javax.swing.SpinnerNumberModel;
/**
*
* @author uli
*/
public class PasswordGeneratorFrame extends javax.swing.JFra... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter.password;
import java.security.SecureRandom;
import java.util.LinkedList;
import java.util.List;
import jcrypter.utils.MersenneTwisterFast;
import jcrypter.utils.Utils;
/**
*
* @author uli
*/
public... |
/*
* PasswordListGeneratorFrame.java
*
* Created on 16. Oktober 2008, 16:49
*/
package jcrypter.password;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.l... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* ECKeyGeneratorFrame.java
*
* Created on 10.09.2008, 23:25:49
*/
package jcrypter.signature;
import java.awt.EventQueue;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream... |
/*
* RSASignatureAlgorithmSelectorDialog.java
*
* Created on 24. September 2008, 19:54
*/
package jcrypter.signature;
/**
*
* @author uli
*/
public class RSASignatureAlgorithmSelectorDialog extends javax.swing.JDialog {
/** Creates new form RSASignatureAlgorithmSelectorDialog */
public RSASignatu... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* SignatureFrame.java
*
* Created on 10.09.2008, 19:57:18
*/
package jcrypter.signature;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProvid... |
/*
* JCrypterFrame.java
*
* Created on 26. Juli 2008, 17:47
* http://1x1.googlecode.com
* GNUCrypto version: Revision 122
* Released under Apache License
* Implements Singleton, saved instance called mainFrame
*/
package jcrypter;
import jcrypter.password.PasswordGeneratorFrame;
import java.io.ByteArrayInputSt... |
/*
* J24Frame.java
*
* Created on 19. September 2008, 15:56
*/
package j24;
import java.io.FileWriter;
import java.io.IOException;
import javax.swing.SpinnerNumberModel;
import net.sourceforge.jeval.EvaluationException;
import net.sourceforge.jeval.Evaluator;
/**
*
* @author uli
*/
public class J24Frame exte... |
package jtimebomb;
/*
* JTImeBombFrame.java
*
* Created on 28. Juli 2008, 12:22
*/
import java.awt.Color;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.SpinnerNumberModel;
/**
*
* @author uli
*/
public class JTimeBombFrame extends javax.swing.JFrame {
//Custom components
... |
import java.util.Vector;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
//Enums
/**
*
* @author User
*/
public class mtSettingsInterface
{
public Vector<Integer> rows = new Vector<Integer>();
public Vector<mtOperator> operators = new Vector<mtOperator>();
publ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author User
*/
public enum mtOperator
{
MULT, PLUS, MINUS
} |
/*
* mtSettingsFrame.java
*
* Created on 4. April 2008, 17:14
*/
/**
*
* @author User
*/
public class mtSettingsFrame extends javax.swing.JFrame {
//Variables
private mtSettingsInterface settingsInterface = new mtSettingsInterface();
/** Creates new form mtSettingsFrame */
public ... |
import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
/*
* mtStatisticsFrame.java
*
* Created on 4. April 2008, 22:53
*/
/**
*
* @author User
*/
public class mtStatisticsFrame extends javax.swing.JFrame {
/** Creates new form mtStatisticsFrame */
... |
import java.awt.Color;
import java.util.Random;
/*
* mtMainFrame.java
*
* Created on 4. April 2008, 19:45
*/
import javax.swing.*;
/**
*
* @author User
*/
public class mtMainFrame extends javax.swing.JFrame {
/** Creates new form mtMainFrame */
public mtMainFrame() {
initComponents();
... |
package jtimebomb;
/*
* JTImeBombFrame.java
*
* Created on 28. Juli 2008, 12:22
*/
import java.awt.Color;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.SpinnerNumberModel;
/**
*
* @author uli
*/
public class JTimeBombFrame extends javax.swing.JFrame {
//Custom components
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* JSCFrame.java
*
* Created on 05.01.2009, 18:29:05
*/
package jsc;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Tra... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jcrypter;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.security.Key;
import java.security.KeyPair;
import java.security.PrivateKey;
import java.se... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.