Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. private String createAndEncrypt( ArrayList<String> in, String cipherKey){
  2. String cipher=cipherKey;
  3.  
  4. String test="";
  5. for(int i=0;i<in.size();i++){
  6. String tempStr=in.get(i);
  7. if(tempStr.length()<6){
  8. while(tempStr.length()!=6){
  9. tempStr=tempStr+"_";}
  10. }
  11.  
  12. char[] temp=new char[tempStr.length()];
  13. for(int j = 0; j < 6; j++)
  14. {
  15. int value = Character.getNumericValue(cipher.charAt(j));
  16. temp[j]=tempStr.charAt(value);
  17. test=test+temp[j];
  18. }
  19. }
  20.  
  21. return test;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement