Computing.Net > Forums > Programming > encryp/decryp in jdk 1.2

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

Reply to Message Icon

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



Sponsored Link
Ads by Google

Response Number 1
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.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: encryp/decryp in jdk 1.2

Question about JDK 1.4.2 www.computing.net/answers/programming/question-about-jdk-142/13345.html

Printing issues in JDK 1.3 www.computing.net/answers/programming/printing-issues-in-jdk-13/2016.html

mysql_result in PHP5/MySQL 4.1.2? www.computing.net/answers/programming/mysqlresult-in-php5mysql-412/10672.html