Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
encryp/decryp in jdk 1.2
Name: vonchan Date: April 26, 2004 at 04:08:35 Pacific OS: win 2000 CPU/Ram: 128
Comment:
Please if any one knows a simple encryption and decryption alogrithm in java (jdk 1.2) let me know it, it is very urgent, thanks and regds., S.Chandrasekar
Name: Jake Date: April 26, 2004 at 22:01:32 Pacific
Reply:
I don't know Java, but the most basic encryption/decryption algorithm is to XOR the cleartext with the key, then XOR again to decrypt.
In C, this would be accomplished by opening a file as binary, reading a byte, XORing it, and writing the result out. Two loops would be required, one to go through the file one byte at a time, and one inside the file loop to go through each byte of the key.
Summary: I attend University of Toronto. My computer fundamental class professor assigned us a programming homework involving JDK 1.4.2. It supposed to ask the user to enter a number in metres and then it will...
Summary: Is there any mysqli equivalent to the mysql_result() function? I began a project last year using PHP4 and MySQL 3.2, which I then abandoned for some time, I recently picked it up again, the thing is: ...