This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Cipher { | |
private String regularAlphabet; | |
private String cipherAlphabet; | |
public Cipher(String key) { | |
regularAlphabet = "abcdefghijklmnopqrstuvwxyz"; | |
cipherAlphabet = this.createCipher(key.toLowerCase(), regularAlphabet); | |
} | |
public Message encrypt(Message message) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import twitter4j.Query; | |
import twitter4j.QueryResult; | |
import twitter4j.Status; | |
import twitter4j.StatusUpdate; | |
import twitter4j.Twitter; | |
import twitter4j.TwitterException; | |
import twitter4j.TwitterFactory; | |
import java.util.ArrayList; | |
public class DankBot { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Cipher { | |
private String regularAlphabet; | |
private String cipherAlphabet; | |
public Cipher() { | |
regularAlphabet = "abcdefghijklmnopqrstuvwxyz"; | |
cipherAlphabet = "defghijklmnopqrstuvwxyzabc"; | |
} | |
public Message encrypt(Message message) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Cipher { | |
private String regularAlphabet; | |
private String key; | |
public Cipher(String keyword, Message message) { | |
regularAlphabet = "abcdefghijklmnopqrstuvwxyz"; | |
key = this.createKey(keyword, message); | |
} | |
public String createKey(String keyword, Message message) { |
OlderNewer