Messages - Ruffnekk [ switch to compact view ]

Pages: prev1 [2] 3 4 5 6 7 ... 57next
6
Finished Programs / Re: DONE: Generate sequential serial numbers
« on: June 22, 2012, 01:31 AM »
No sarcasm intented. Just saying that when you use...

Code: Autohotkey [Select]
  1. mySerial := SubStr("000000" . mySerial, -5)

...you are trying to put a string into an integer variable. Even when using
var
in languages like C#, the moment you declared
mySerial := 1
it is an integer.

Even when AHK would allow this and store the string in
mySerial
, then the statement
mySerial += myFactor
would fail or give unexpected results.

7
Although I´d love to have a go at it, I honestly don´t have the time for it, especially when it´s an obscure unknown method  ;D

I'm sorry, do I detect an irony machine?  8)

Heh - nothing is secure forever, however I think I made my point : )

One more comment: put fancier, this whole thing started with a clash between "it can't be secure" (and it probably isn't) vs "Me, No, I don't have the energy to break it". So it gets into "just how far up the hacker chain DOES it take to break brand new codes?"



I agree! Also, it depends on the reward for breaking it I guess. People generally are more willing to give a crack at a $100,000 challenge or something that contains information that has merit for them.

8
Finished Programs / Re: DONE: Generate sequential serial numbers
« on: June 21, 2012, 05:18 AM »
I still don't quite get what SubStr() is doing, but from a forum snippet I added the "6 digit" part


mySerial := 1
myFactor := 2

^g:: ; Ctrl+G, change to whatever you want.
{
mySerial := SubStr("000000" . mySerial, -5)
    SendInput, % mySerial
    mySerial += myFactor
}
Return



I don´t know AHK very well, but I can imagine SubStr() is Substitute String. Which brings me to the next point, that you are effectively converting your integer to a string. The proper way do it is converting the return value and leaving the integer alone:


mySerial := 1
myFactor := 2

^g:: ; Ctrl+G, change to whatever you want.
}
    SendInput, % SubStr("000000" . mySerial, -5)
    mySerial += myFactor
}
Return


I don´t know if AHK cares about it, but it´s good practice in programming and other languages would not accept such an implicit conversion. ;)

9
Although I´d love to have a go at it, I honestly don´t have the time for it, especially when it´s an obscure unknown method  ;D

10
As a self-proclaimed expert on classical (pen-and-paper) cryptography, I just had to reply to this thread. If you want to challenge people to crack your self-made cipher, then it is common practice to post the exact method of encryption and decryption. Explain in detail how the cipher works and give some examples. Then you can post a challenge ciphertext, encrypted with unknown key(s). Be advised though, many "innovative" methods of encipherment boil down to one or another method that already has been in use for centuries.

Pages: prev1 [2] 3 4 5 6 7 ... 57next
Go to full version