Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help in this piece of Encryption...
#1
First time I come across Cryptography using JAVA.

This is a basic XOR Encryption I get from the Internet.

Code:
public String xorEncStr(String encKey, String toEnc)
{
        int t=0;
        int encKeyI=0;

        while(t < encKey.length())
        {
            encKeyI+=encKey.charAt(t);
            t+=1;
        }
        return xorEnc(encKeyI,toEnc);
}

I write the full code and use the method,it always give me an error regarding "return xorEnc(encKeyI,toEnc)".

After looking again at this return type function,find out that "xorEnc" is not declare.

Anyone know how to modified this code?

Thanks.
Reply


Messages In This Thread
Help in this piece of Encryption... - by ethical_john - 10-29-2009, 03:31 AM
RE: Help in this piece of Encryption... - by Ben - 10-29-2009, 04:10 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)