// Path: encoder/src/main/java/ru/bullyboo/encoder/Encoder.java
// public class Encoder {
// 
//     private Encoder() {
// 
//     }
// 
//     public static BuilderAES BuilderAES() {
//         return new BuilderAES();
//     }
// 
//     public static BuilderARCFOUR BuilderARCFOUR() {
//         return new BuilderARCFOUR();
//     }
// 
//     public static BuilderDES BuilderDES() {
//         return new BuilderDES();
//     }
// 
//     public static BuilderDESede BuilderDESede() {
//         return new BuilderDESede();
//     }
// 
//     public static BuilderRSA BuilderRSA() {
//         return new BuilderRSA();
//     }
// 
//     public static BuilderHMAC BuilderHMAC() {
//         return new BuilderHMAC();
//     }
// 
//     public static BuilderPBE BuilderPBE() {
//         return new BuilderPBE();
//     }
// 
//     public static BuilderBlowfish BuilderBlowfish() {
//         return new BuilderBlowfish();
//     }
// 
//     public static ru.bullyboo.encoder.hashes.Hash Hashes() {
//         return new ru.bullyboo.encoder.hashes.Hash();
//     }
// 
// }
// 
// Path: encoder/src/main/java/ru/bullyboo/encoder/callbacks/EncodeCallback.java
// public interface EncodeCallback {
// 
//     void onSuccess(String result);
// 
//     void onFailure(Throwable e);
// }


import ru.bullyboo.encoder.Encoder;
import ru.bullyboo.encoder.callbacks.EncodeCallback;
package ru.bullyboo.encryption.tests;


/**
 * Created by BullyBoo on 01.04.2017.
 */

public class TestARCFOUR {

    private static final String message = "test text 123\0\0\0"; //Not null padding
    private static final String message1 = "test message"; //with padding
    private static final String key = "test key";
    private static final String vector = "test vector";


    public static void testAll_ARCFOUR(){

        new Thread(new Runnable() {
            @Override
            public void run() {

                for(int i = 1; i <= 8; i++){
                    encrypt_decrypt(i);
                    System.out.println("end check with keySize " + i);
                }
            }
        }).start();
    }

    private static void encrypt_decrypt(int keySize) {

        String encrypt = Encoder.BuilderARCFOUR()
                .message("test message")
                .key("test key")
                .keySize(1024)
                .encrypt();

// Path: encoder/src/main/java/ru/bullyboo/encoder/Encoder.java
// public class Encoder {
// 
//     private Encoder() {
// 
//     }
// 
//     public static BuilderAES BuilderAES() {
//         return new BuilderAES();
//     }
// 
//     public static BuilderARCFOUR BuilderARCFOUR() {
//         return new BuilderARCFOUR();
//     }
// 
//     public static BuilderDES BuilderDES() {
//         return new BuilderDES();
//     }
// 
//     public static BuilderDESede BuilderDESede() {
//         return new BuilderDESede();
//     }
// 
//     public static BuilderRSA BuilderRSA() {
//         return new BuilderRSA();
//     }
// 
//     public static BuilderHMAC BuilderHMAC() {
//         return new BuilderHMAC();
//     }
// 
//     public static BuilderPBE BuilderPBE() {
//         return new BuilderPBE();
//     }
// 
//     public static BuilderBlowfish BuilderBlowfish() {
//         return new BuilderBlowfish();
//     }
// 
//     public static ru.bullyboo.encoder.hashes.Hash Hashes() {
//         return new ru.bullyboo.encoder.hashes.Hash();
//     }
// 
// }
// 
// Path: encoder/src/main/java/ru/bullyboo/encoder/callbacks/EncodeCallback.java
// public interface EncodeCallback {
// 
//     void onSuccess(String result);
// 
//     void onFailure(Throwable e);
// }


// Path: app/src/main/java/ru/bullyboo/encryption/tests/TestARCFOUR.java
import ru.bullyboo.encoder.Encoder;
import ru.bullyboo.encoder.callbacks.EncodeCallback;

package ru.bullyboo.encryption.tests;


/**
 * Created by BullyBoo on 01.04.2017.
 */

public class TestARCFOUR {

    private static final String message = "test text 123\0\0\0"; //Not null padding
    private static final String message1 = "test message"; //with padding
    private static final String key = "test key";
    private static final String vector = "test vector";


    public static void testAll_ARCFOUR(){

        new Thread(new Runnable() {
            @Override
            public void run() {

                for(int i = 1; i <= 8; i++){
                    encrypt_decrypt(i);
                    System.out.println("end check with keySize " + i);
                }
            }
        }).start();
    }

    private static void encrypt_decrypt(int keySize) {

        String encrypt = Encoder.BuilderARCFOUR()
                .message("test message")
                .key("test key")
                .keySize(1024)
                .encrypt();

        String decrypt = Encoder.BuilderARCFOUR()