Dismiss Notice
Wynncraft, the Minecraft MMORPG. Play it now on your Minecraft client at (IP): play.wynncraft.com. No mods required! Click here for more info...

Tool My Really Bad Cipher With Some Code

Discussion in 'Your Work' started by 01101001, Jan 11, 2018.

Thread Status:
Not open for further replies.
  1. 01101001

    01101001 01

    Messages:
    163
    Likes Received:
    75
    Trophy Points:
    63
    Minecraft:
    Code:
    import java.util.Arrays;
    import java.util.HashMap;
    import java.util.Scanner;
    
    class Main {
       
        public static int isUpperCase = 0;
       
        public static void main(String args[]) {
           
       
       
        System.out.println("Enter your string to cipher: ");
       
        Scanner s =  new Scanner(System.in);
       
        String str = s.nextLine().toLowerCase();
       
        Character[] letters = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
       
        for (int i = 0; i < str.length(); i++) {
            char l = str.charAt(i);
           
            if (!((Arrays.asList(letters).contains(l)))) {
                System.out.print(l);
                continue; 
            }
           
            int temp = Arrays.asList(letters).indexOf(l);
           
            if (l == ' ') {
               
                System.out.print(' ');
               
            } else {
           
            if (letters[temp] == 'a') {
               
                int temp1 = temp + 1;
                System.out.print(letters[temp1]);
               
            } else if (temp + temp > 25) {
           
                int temp3 = temp + temp - 25;
                System.out.print(letters[temp3]);
               
            } else {
               
                int temp4 = temp + temp + 1;
                System.out.print(letters[temp4]);
            }
           
           
           
           
           
           
        }
    }       
    }     
    }       
    
    
    
    My bad cipher basically it gets the letter position of the letter let's say your letter is c then the program will be okay you said c and c is the third letter so then it doubles it and it gets the letter that is 6th in the alphabet so that's f so c in my cipher is f!
     
  2. SHsuperCM

    SHsuperCM Super the 3rd of the SHCM kingdom VIP+

    Messages:
    152
    Likes Received:
    136
    Trophy Points:
    67
    Minecraft:
    Noice..
    But there is no better cipher than minecraft's stupid fudging obfuscation that you need to go around when doing reflection:saltedhigh::saltedhigh::saltedhigh::saltedhigh::saltedhigh::saltedhigh:
     
  3. 01101001

    01101001 01

    Messages:
    163
    Likes Received:
    75
    Trophy Points:
    63
    Minecraft:
    rip they fixed the 10char bypass bug. XD Yea it's a really bad cipher but hey
     
Thread Status:
Not open for further replies.