Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String createAndEncrypt( ArrayList<String> in, String cipherKey){
- String cipher=cipherKey;
- String test="";
- for(int i=0;i<in.size();i++){
- String tempStr=in.get(i);
- if(tempStr.length()<6){
- while(tempStr.length()!=6){
- tempStr=tempStr+"_";}
- }
- char[] temp=new char[tempStr.length()];
- for(int j = 0; j < 6; j++)
- {
- int value = Character.getNumericValue(cipher.charAt(j));
- temp[j]=tempStr.charAt(value);
- test=test+temp[j];
- }
- }
- return test;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement