Package utils

Examples of utils.OneOneDictionary


    // { 'H', 'N' }, { 'R', 'S' }, { 'X', 'H' }, { 'L', 'H' },
    // { 'B', 'D' }, { 'Z', 'L' }, { 'D', 'C' }, { 'T', 'U' },
    // { 'A', 'M' }, { 'Q', 'W' }, { 'P', 'F' }, { 'E', 'G' },
    // { 'J', 'Y' }, { 'V', 'P' }, { 'G', 'B' }, { 'M', 'V' },
    // { 'K', 'K' }, { 'I', 'J' } });
    Dictionary dict = new OneOneDictionary(new char[][] {{ 'U', 't' },
        { 'L', 'h' }, { 'O', 'i' }, { 'Y', 's' }, { 'S', 'e' },
        { 'X', 'a' }, { 'V', 'g' }, { 'H', 'n' }, { 'Q', 'm' },{ 'M', 'x' },{ 'W', 'o' },
        { 'P', 'f' },
        { 'A', 'p' }, { 'E', 'l' } , { 'B', 'c' }, { 'R', 'r' }, { 'T', 'y' },
        { 'D', 'd' }, { 'Z', 'u' }, { 'K', 'v' }, { 'J', 'b' },
        { 'I', 'k' }, { 'G', 'w' }});
    PrintWriter pw = new PrintWriter(new FileOutputStream("output"));
    for (int l = 0; l < sb.length(); l++) {
      pw.write(dict.lookup(sb.charAt(l)));
    }
    pw.close();

  }
View Full Code Here


    // provide
    // tane
    // take
    // X\]^
    // 2013
    OneOneDictionary dict = new OneOneDictionary(new char[][] {
        { 'M', 't' }, { 'Q', 'h' }, { 'W', 'e' }, { 'I', ' ' },
        { 'm', 'x' }, { 'f', 'f' }, { 'T', 'i' }, { '[', 'l' },
        { 'S', 's' }, { 'H', 'A' }, { 'O', 'g' }, { 'U', 'n' },
        { 'V', 'm' }, { 'P', 'a' }, { 'N', 'o' }, { 'L', 'p' },
        { 'J', 'r' }, { 'd', 'u' }, { 'K', 'y' }, { 'A', 'C' },
        { 'h', 'c' }, { 'c', 'd' }, { 'g', 'R' }, { 'B', 'S' },
        { 'e', 'w' }, { 'i', 'b' }, { 'j', '-' }, { 'R', '.' },
        { '`', '\n' }, { 'b', 'v' }, { 'G', 'M' }, { 'C', '4' },
        { 'D', '5' }, { 'E', '6' }, { 'F', '/' }, { 'Z', 'F' },
        { 'k', 'Y' }, { 'n', 'k' }, { 'l', 'I' }, { 'p', 'T' },
        { 'a', ',' }, { 'o', ':' }, { 'X', '2' }, { '\\', '0' },
        { ']', '1' }, { '^', '3' }, { 'Y', '(' }, { '_', ')' } });
    PrintWriter pw = new PrintWriter(new FileOutputStream(
        "src/ass2/crack/output"));
    StringBuilder sb = new StringBuilder();
    for (int i = 0; i < line.length() - 1; i++)
      sb.append(dict.lookup(line.charAt(i)));
    pw.println(sb.toString());
    pw.close();
  }
View Full Code Here

TOP

Related Classes of utils.OneOneDictionary

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.