Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (517)
Games in Android Showcase (123)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  RSA encryption tool  (Read 821 times)
0 Members and 1 Guest are viewing this topic.
Offline lcass
« Posted 2014-08-22 21:56:58 »



So , I got bored today and I am into building crypto-systems , this is probably because I enjoyed building and then dos-ing my friends. After this I got interested into how data was stored in encryption , I developed a very basic version that just encrypts files with a 6 digit code , not difficult to crack but it built up my skills for converting text in this format.
Now , java , this is not the language really to code RSA into . Mainly because its difficult to allocate 1024 bits of memory easily, so instead I used a long , 64 bits but still pretty large.
Next came the problem of the horrifically complicated maths involved with RSA encryption , tonients , modulo , inverse multiplicative modulo. Anyway after finding some code that handles the inversemodulo on a forum from 2007 I was able to build some similar code that returns the required value of x from the extended IMM function , ax + by = GCD(a,b).
A brute force attack on the encrypted data in the current way im using it would probably require more than 3- 4 hours of running to calculate the actual data , this is because the encryption keys are low , simply because any larger and the value flips negative.
https://drive.google.com/file/d/0B48ywWBymi3OR2ZvaG5obU0xc2c/edit?usp=sharing <---download!

So , here is an example of its work .
1  
2  
3  
4  
5  
6  
7  
Hello there I am called lcass and this is a brief story of my entire life , I wonder if you will like this s it took quite a while to write.
So it started out with me being born , as it does with most people . The first few years were a blur this is due to the fact I fell down the stairs at the age of two or three , I cant really remember
All I remember is falling down those stairs and screaming. After that I went to my primary school , dont worry stalkers noone will know where I went because I wont tell you. However I did
throw a clay helicopter at a teachers head then I got kicked out. I then went to a different school and met my best friend , those were easily the best years of my early life. No im in secondry school
, I am entering year 11 , the first year and second year of secondry school were horrific , both went horribly wrong but they are were I got into programming . Now im at the age where im so far away from the
previous events of my life that I am doubting wether they actually happened , its an odd sensation . Anyway I got bored on the second to last friday of my school summer holiday and created an RSA encryption program
Enjoy!

The original information
1  
12994332;13738037;29197882;29197882;15697959;13367906;2470137;23405821;13738037;27462088;13738037;13367906;9149509;13367906;6224226;20886075;13367906;16691237;6224226;29197882;29197882;13738037;27658213;13367906;29197882;16183275;16691237;6224226;29285840;13367906;6224226;4188209;27658213;13367906;2470137;23405821;1087822;29285840;13367906;1087822;29285840;13367906;6224226;13367906;25397605;27462088;1087822;13738037;29692160;13367906;29285840;2470137;15697959;27462088;25312206;13367906;15697959;29692160;13367906;20886075;25312206;13367906;13738037;4188209;2470137;1087822;27462088;13738037;13367906;29197882;1087822;29692160;13738037;13367906;14837225;13367906;9149509;13367906;27481293;15697959;4188209;27658213;13738037;27462088;13367906;1087822;29692160;13367906;25312206;15697959;16183275;13367906;27481293;1087822;29197882;29197882;13367906;29197882;1087822;2731905;13738037;13367906;2470137;23405821;1087822;29285840;13367906;29285840;13367906;1087822;2470137;13367906;2470137;15697959;15697959;2731905;13367906;30065486;16183275;1087822;2470137;13738037;13367906;6224226;13367906;27481293;23405821;1087822;29197882;13738037;13367906;2470137;15697959;13367906;27481293;27462088;1087822;2470137;13738037;21689305;

and the encrypted info.

Make sure to note down your keys , send the public key to someone. Get them to encrypt it using that key, then you can unencrypt it using the private key.
Offline Cero
« Reply #1 - Posted 2014-08-23 16:23:43 »

Easy to use crypto is nice.

However cannot run it, because you have Java 8 and this requires minimum of 8 because of that.

I actually hate that every project should default to minimum of 6 imo, until you use something that is 7 or 8 specific and then throw the error, but yeah...

Actually havent upgraded to 8

Pages: [1]
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (38 views)
2014-10-27 03:28:38

TehJavaDev (29 views)
2014-10-27 03:27:51

DarkCart (43 views)
2014-10-26 19:37:11

Luminem (24 views)
2014-10-26 10:17:50

Luminem (29 views)
2014-10-26 10:14:04

theagentd (35 views)
2014-10-25 15:46:29

Longarmx (63 views)
2014-10-17 03:59:02

Norakomi (61 views)
2014-10-16 15:22:06

Norakomi (50 views)
2014-10-16 15:20:20

lcass (46 views)
2014-10-15 16:18:58
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!