can you anyone help me in decrypt
for(int pos=0,kpos=0 ;pos<str.length();++pos,++kpos){
if(kpos >=key.length())
kpos = 0;
char c=str.charAt(pos);
char kc=key.charAt(kpos);
if (c == ’ ’ || c == ‘,’ || c == ‘.’ ){
decrypted += c;
continue;
}
for (int i=0; i<=25 ;i++){
if ( c == letters.charAt(i)){
for (int j=0 ; j<letters.length(); ++j){
if ( kc == letters.charAt(j) ){
decrypted += (letters.charAt((i-j+26)%26));
break; }}
break; } } }
return decrypted;
}
return error in run
error
not return orginal plaintext
I see.
Well, that means your computer is unable to understand your instructions. This can be caused by many things, I’ll list a few below:
- Your computer cannot hear you very well, try speaking directly into the microphone.
- Your computer is displeased with the quality of the power you are supplying it, please ensure you’re using only the highest quality electrons.
- It’s possible that one or more logic pipes are clogged, you’ll need to call a professional. Look in the Yellow Pages under ‘Plumbers’.