Hack Forums
[.NET] [Source][VB.Net]Asymetric RSA encryption example - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [Source][VB.Net]Asymetric RSA encryption example (/showthread.php?tid=754481)

Pages: Pages 1 2 3


[Source][VB.Net]Asymetric RSA encryption example - pr0t0typ3 - Oct 20, 2010

Asymetric RSA Encryption Example

Hey Today I gonna show you a little snippet I wrote to show you the usage of the RSA-Encryption which is included in the .net Framework.
This Encryption is a kind of different to almost everything you saw before.
It works with two keys. One you can make public that can only encrypt Text/Files/smth. else. And one key you should keep private as only this key can decrypt the encrypted data/text.
The special and very very good thing about that is, that you don't need a key exchange.
That means that if you make a RAT for example and the Victim is able to sniff the traffic he'll only get the encryption key which will not make it possible to decrypt the sending/sent data/text.
So here are the positive things about this encryption example:
  • Secure (As much bit as you want (I used 512))
  • Asymetric (no keyexchange needed)

And here you go:
[img]http://img839.imageshack.us/img839/5351/2010v.png[/img]
And for all leechers:
Pastebin
Have Fun and post some Feedback.. It took me some time to make that...



* - Mr. Anderson - Oct 20, 2010

Awesome code :)
so this can go up to 1024 bits as well ?


* - iDope -.- - Oct 20, 2010

Going to go through the source now.
Thanks for this, looks like it'll help me somewhere.


* - The-Noob - Oct 20, 2010

very nice. I'm trying to learn about encryption and such :)


* - pr0t0typ3 - Oct 20, 2010

(Oct 20, 2010 01:11 PM)Mr. Anderson Wrote:  Awesome code :)
so this can go up to 1024 bits as well ?

You can go up to 10240 if you want ^^ as high as you want but it will become very slow and 512 shold be enought


* - c6p0 - Oct 20, 2010

thanks add this in my crypter/binder

many thanks .


* - pr0t0typ3 - Oct 20, 2010

(Oct 20, 2010 01:25 PM)c6p0 Wrote:  thanks add this in my crypter/binder

many thanks .

No Problem..
I don't know if it is a good idea for a crypter as it is mainly used for very secure data (CIA and M16 are also using it) and a Crypter just needs to be undetected.
I would sugesst it for a RAT as I already mentioned above.


* - Asus - Oct 20, 2010

Wow nice :) First metric RSA encryption seen here.


* - Times Change - Oct 20, 2010

Thanks, I will be using this to actually understand the encryption and probably try and make my own crypter.


* - pr0t0typ3 - Oct 20, 2010

(Oct 20, 2010 01:34 PM)Asus Wrote:  Wow nice :) First metric RSA encryption seen here.

No Problem.. Thanks for the feedback and @above I already said that I guess this is not the best encryption you could use for a crypter .. Maybe a HWID/Login System would be nice using this


* - 6e756c6c - Oct 20, 2010

https://hackforums.net/showthread.php?tid=680762

Not trying to jack the thread or anything, just providing another resource for this. As Prototype has mentioned, you definitely do NOT want to use this for a crypter - it should be limited to small amounts of data (128 to 1,024 bytes).


* - pr0t0typ3 - Oct 20, 2010

Ah well I didn't see your thread but it is a kind of similar to my usage good work and yeah you should not use it in a crypter


* - c6p0 - Oct 20, 2010

these possible to divide the server into several parts so that each party is encrypted independently.


* - 6e756c6c - Oct 20, 2010

No, Asymmetric encryption is intended to transfer a key so that said key can be used as a Symmetric encryption key. Never use it on large amounts of data.


* - c6p0 - Oct 20, 2010

ok thanks sir
just for little server like downloader .