| Author |
Message |
Topic: simple, but very secure streamcipher |
Hexadecimator
Replies: 3
Views: 661
|
Forum: Scripts & Functions Posted: Thu Mar 01, 2007 2:47 am Subject: simple, but very secure streamcipher |
hm, hadn't thought to put an IV in.
And you are correct, it is dangerous to rely on it without some proof. However, I have run lots of test data and have been unable to find any patterns. I have run ... |
Topic: simple, but very secure streamcipher |
Hexadecimator
Replies: 3
Views: 661
|
Forum: Scripts & Functions Posted: Wed Feb 28, 2007 7:16 am Subject: simple, but very secure streamcipher |
Update:
lfsrs now reseed each other every 10,000 bytes.
I tested the script on a 14kb file, and it succesfully encrypted and decrypted when i seeded with the same #, but gave me gibberish when I use ... |
Topic: how to put like + % `n in a fileappend |
Hexadecimator
Replies: 11
Views: 351
|
Forum: Ask for Help Posted: Wed Feb 28, 2007 5:24 am Subject: how to put like + % `n in a fileappend |
fileread str, test.txt
Loop, Parse, str, `n, `r%A_Space%%A_Tab% ;this will also remove lines with only spaces and tabs
{
if(A_LoopField<>"")
newstr=%newstr%%A_LoopField%`r`n
}
fi ... |
Topic: Problem with text insertion... |
Hexadecimator
Replies: 2
Views: 225
|
Forum: Ask for Help Posted: Wed Feb 28, 2007 5:19 am Subject: Problem with text insertion... |
| you probably have something screwey with the copy+paste settings on word. It shouldn't add extra lines to your text. Go to paragraph settings and make sure you have all the spacing options at 0, then ... |
Topic: how to put like + % `n in a fileappend |
Hexadecimator
Replies: 11
Views: 351
|
Forum: Ask for Help Posted: Wed Feb 28, 2007 5:12 am Subject: how to put like + % `n in a fileappend |
sorry, i used the wrong apostrophe. It turns out you also need the `r`n instead of `n.
You will have to run it more than once to remove exra blank lines.
StringReplace, str, str, `r`n`r`n,`r`n, Al ... |
Topic: how to put like + % `n in a fileappend |
Hexadecimator
Replies: 11
Views: 351
|
Forum: Ask for Help Posted: Wed Feb 28, 2007 4:13 am Subject: how to put like + % `n in a fileappend |
I assume you mean you want empty lines deleted.
;str contains the string you want purged of empty lines
;this will not check for lines with whitespace chars, use regex for that
StringReplace, s ... |
Topic: Scrrenshots |
Hexadecimator
Replies: 10
Views: 401
|
Forum: Ask for Help Posted: Wed Feb 28, 2007 4:06 am Subject: Scrrenshots |
another way would be to run a script on the comp you want screenshots from that takes a screenshot and uploads it to an ftp site every interval. You can then check the images from anywhere.
Forums ... |
Topic: Reload Extended |
Hexadecimator
Replies: 8
Views: 511
|
Forum: Wish List Posted: Wed Feb 28, 2007 1:43 am Subject: Reload Extended |
#singleinstance force
run, something.ahk params
or you could just save the params to a file or the registry, then reload. |
Topic: What did you know about programming....? |
Hexadecimator
Replies: 14
Views: 2370
|
Forum: General Chat Posted: Tue Feb 27, 2007 6:43 am Subject: What did you know about programming....? |
#4: Been programming in several other languages for 5 years.
I may stick with AHK for awhile though, especially once I learn the basics for using functions in dlls. I was actually about to write a ... |
Topic: KM events |
Hexadecimator
Replies: 12
Views: 304
|
Forum: Ask for Help Posted: Tue Feb 27, 2007 6:22 am Subject: KM events |
no, you would use
msgbox, %n%
As for the arrays. you can reference them with array1, array2, etc. But if you have say, 27, stored in i, array%i% is the same as array27. Thus if you use Loop, you ... |
Topic: simple, but very secure streamcipher |
Hexadecimator
Replies: 3
Views: 661
|
Forum: Scripts & Functions Posted: Tue Feb 27, 2007 2:47 am Subject: simple, but very secure streamcipher |
| The code has 2 sets of 8 lfsrs (linear feedback shift registers). The thwo bytes produced are xor'd together to prevent an attacker from reading the state of the generator. They have 2**72 (4.7 sextil ... |
| |