Jump to content




[LUA] [HELP]How to encode something, send over rednet, decode at the other end?


  • You cannot reply to this topic
6 replies to this topic

#1 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 17 May 2013 - 07:15 PM

How do I encode something then send it to another computer over rednet, then have that computer send it to another one and then that computer decode it?
I can't seem to figure out how to use the RC4 encryption API, can anyone help?
(I didn't want to have to make a new topic)
making a new topic, nvm.

Edited by Icanbreathecode, 18 May 2013 - 10:30 AM.


#2 Sora Firestorm

  • Members
  • 89 posts

Posted 17 May 2013 - 07:31 PM

The SHA encryption algorithms are hashes, which cannot be decrypted, by design.
You're going to have to choose another algorithm.

#3 Bubba

    Use Code Tags!

  • Moderators
  • 1,142 posts
  • LocationRHIT

Posted 17 May 2013 - 08:33 PM

Step 1) Design or find an encryption (NOT hashing!) method of your choice. There are plenty of APIs floating around the forums. A quick search of "encrypt" should yield the results you want.
Step 2) Use the encryption method to encrypt the input and then send it the computer which will decode the encryption.
Step 3) Perform the decryption method provided with the API or that you yourself have created on the encrypted string.
Step 4) ???
Step 5) Profit!1!11

#4 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 17 May 2013 - 10:45 PM

Could you help me with the the RC-4 one? The commands don't want to work.
RC-4 is the only one that I think would work that I've found. I've spent like an hour searching.

#5 Geforce Fan

  • Members
  • 846 posts
  • LocationMissouri, United States, America, Earth, Solar System, Milky Way, Universe 42B, Life Street, Multiverse, 4th Dimension

Posted 18 May 2013 - 10:15 AM

bump

#6 Orwell

    Self-Destructive

  • Members
  • 1,091 posts

Posted 18 May 2013 - 02:15 PM

I implemented an RSA-api the other day (not quite finished yet). I strongly suggest the RSA algorithm (wikipedia) or any other public-key algorithm. It's what's being used in SSL and other applications of encrypted networking.

#7 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 18 May 2013 - 10:59 PM

i have a working XOR stream API (verry insecure if you know what your doing)
its essentially noob-proof to those who have no knowledge of encryption
it uses a symetric key exchange (unlike rsa wich is asymetric) using FCS32





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users