Jump to content

Custom Algorithm

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Victor

Victor

    Programmer

  • Members
  • PipPipPipPip
  • 116 posts
I know that Java comes with support for several algorithms when it comes to cryptography. Is there a way to write your own algorithm or a custom one ?

Thanks in advance

#2
MeTh0Dz

MeTh0Dz

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,119 posts
Why would you not be able to write your own algorithm? That would make absolutely no sense.

#3
Victor

Victor

    Programmer

  • Members
  • PipPipPipPip
  • 116 posts
I'm having kind of a hard time explaining. If I write my algorithm, how can I use it like a regular algorithm. If I have algorithm ABC, how can I make keys and use ciphers etc...

I hope I explained well enough

#4
Luke Bradley

Luke Bradley

    Newbie

  • Members
  • Pip
  • 6 posts

Victor said:

I'm having kind of a hard time explaining. If I write my algorithm, how can I use it like a regular algorithm. If I have algorithm ABC, how can I make keys and use ciphers etc...

I hope I explained well enough

Hey, I recommend you do a little research online about cryptography. Its important to study it before you use it, because you need to understand the whole system to prevent security holes.

The main advice I can give is to use the commercial stuff for anything real. Crypto is a mathematicians game, mortals like you and me can't make the strong stuff. But if your interested in playing with it, you could start by making a rotor. Take a password (called key) and convert the letters to numbers, and convert the letters in the message you want to encrypt to numbers. then add the value of the password letters to each letter in the message in a loop. This encrypted message is called the "cipher". Then, somebody else with the key can reverse the process by subtracting the values of the password letters from the cipher the same way. Anybody without the key will just get gibberish. You can then move on a make a version of the Nazi enigma machine if you want something a little harder.

This stuff will keep most casual users out, but shouldn't be used for real business information or anything like that...

#5
Victor

Victor

    Programmer

  • Members
  • PipPipPipPip
  • 116 posts
Ok thanks :)