3
VINDIC
36d

story time
today I learned how to license a git hub project have I finally made it to intermediate developer?
------if Ur interested in a little something I did just for fun--------
https://github.com/vindicit/...

Comments
  • 3
    Get your randomness from mouse movements, you can do that in console apps, just take a value of the x and y coordinate and do some math with it.

    Also why are you xoring the key with itself? Won't it produce the exact same value?
  • 2
    @shoop yep your right I should fix that thank you!
  • 1
    @VINDIC I just realized that xoring the key with itself does not produce the same value.
    Sorry, its too late rn.
  • 2
    @shoop oh no you were kind of right it can repeat values that shouldn't be repeated through it
  • 1
    @shoop and if your wondering why it hasn't been added yet its that I plan on using noisy images of a lava lamp to generate randomness so I am just saving for server equipment
  • 1
    @shoop No, don't generate "own" randomness. Just use the OS' CSPRNG. It has already those things (and more) included and is properly designed.
  • 0
    @VINDIC Just use https://docs.microsoft.com/en-us/... , it will be secure enough.
  • 2
    @VINDIC Is there a diagram of the code so one can look at it? Is your encryption even reversible?
    Why do you have the characters of the alphabet in your code?

    This doesn't make sense:
    foreach(byte jkd in stringChars)
    {
    xor = jkd;
    }

    What?
    if(bytesTotal > 1000)
    {
    f = bytesTotal / 20;
    }
    else
    {
    f = bytesTotal * 2;
    }
    ...
    int finalSecreteSauce = ((bytesTotal*4) * 8);

    Additionally: Your long key in the author string degenerates to a single Int. If I assume thus string will be the secret part (and not your randomness, as this would make your algorithm very unusable, because key exchanges will get very, very difficult then), you effectively have 32-bit key.
  • 2
    140 line function. check
    Badly named variables. check
    Using loops instead of doing math on paper first. check

    Please fix those, my soul hurts.
  • 0
    @sbiewald yeah it doesn't make sense right now I plan on fixing that thank you for the feed back
  • 0
    @Khepu I will I am new to things like this so sorry
  • 0
    @sbiewald can i credit you for improvement on my Project ? :>
  • 0
  • 2
    @VINDIC my I suggest that you look up how DES or AES works? They're fairly straightforward things to implement (for education, never for production).

    *Why* they work well is a whole different thing though, you might want to start from an introductory book like Stallings' Computer Security and then try going through something more advanced.
Add Comment