Page 3 of 8 <12345>Last »
Topic Options
#123712 - 2004-07-26 05:35 PM Re: KiXgolf: Vigenere Cipher - Private coding
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I bet the rules are wrong.
instead of:
Quote:

By default, a Vigenere cipher is using a simple Caesar shift. The modifed Vigenere cipher will add an offset to the encrypted characters on a per-word basis corresponding to the wordnumber in the sentence. Thus, the first word is using an offset of one, the second word is using an offset of two, and so on. For example encrypted character 'A' with word-offset '1' (first word) results in 'B', and encrypted letter 'b' with word-offset '2' (second word) results in 'C'.





it should be:
Quote:

By default, a Vigenere cipher is using a simple Caesar shift. The modifed Vigenere cipher will add an offset to the encrypted characters on a per-word basis corresponding to the wordnumber in the sentence. Thus, the first word is using an offset of one, the second word is using an offset of two, and so on. For example encrypted character 'A' with word-offset '1' (first word) results in 'B', and encrypted letter 'b' with word-offset '2' (second word) results in 'd'.




_________________________
!

download KiXnet

Top
#123713 - 2004-07-26 06:20 PM Re: KiXgolf: Vigenere Cipher - Private coding
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Code:

KiXtart
KiXtart Version = 4.22
KiXforms Version =
KiXGolf Script = kixgolf_vigenere.kix

Computer
OS = Windows 2000 Professional
CPU = Intel Pentium III Mobile
Speed = 933 MHz
Memory = 256 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Vigenere Cipher
Valid Cipher Ops = 10 (111%)
Processing Start = 2004/07/26 19:09:56.743
Processing End = 2004/07/26 19:09:56.863
Duration = 0000/00/00 00:00:00.119
KiXGolf Score = 659

Thank you for participating in KiXtart Golf!
press any key to close

_________________________
!

download KiXnet

Top
#123714 - 2004-07-26 06:40 PM Re: KiXgolf: Vigenere Cipher - Private coding
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Code:

KiXtart
KiXtart Version = 4.22
KiXforms Version =
KiXGolf Script = kixgolf_vigenere.kix

Computer
OS = Windows XP Professional
CPU = Intel(R) Pentium(R) 4 CPU 2.66GHz
Speed = 2656 MHz
Memory = 510 MB

KiXGolf Scoring Engine
Scoring Engine = 3.0.3

KiXtart Golf Score
Tournament = KiXtart Golf: Vigenere Cipher
Valid Cipher Ops = 5 (55%)
Processing Start = 2004/07/26 11:30:18.894
Processing End = 2004/07/26 11:30:18.956
Duration = 0000/00/00 00:00:00.061
KiXGolf Score = 620

Thank you for participating in KiXtart Golf!



as of now, i am going to say that the "Valid Cipher Ops" portion of the code is broken....

here is a sample output
6SOF 6WT U 3FAI7U 5SJS
use "kix golf" to decrypt it.


Top
#123715 - 2004-07-26 06:55 PM Re: KiXgolf: Vigenere Cipher - Private coding
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Processing Start = 2004/07/26 19:45:18.324
Processing End = 2004/07/26 19:45:18.434
Duration = 0000/00/00 00:00:00.110
KiXGolf Score = 645

KiXGolf Score = 644


Edited by Lonkero (2004-07-26 07:00 PM)
_________________________
!

download KiXnet

Top
#123716 - 2004-07-26 07:04 PM Re: KiXgolf: Vigenere Cipher - Private coding
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Processing Start = 2004/07/26 11:56:32.412
Processing End = 2004/07/26 11:56:32.444
Duration = 0000/00/00 00:00:00.032
KiXGolf Score = 611


Top
#123717 - 2004-07-26 07:07 PM Re: KiXgolf: Vigenere Cipher - Private coding
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you got all the ten correct already?
_________________________
!

download KiXnet

Top
#123718 - 2004-07-26 07:11 PM Re: KiXgolf: Vigenere Cipher - Private coding
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
KiXtart Golf Score
Tournament = KiXtart Golf: Vigenere Cipher
Valid Cipher Ops = 10 (111%)
Processing Start = 2004/07/26 20:01:30.622
Processing End = 2004/07/26 20:01:30.752
Duration = 0000/00/00 00:00:00.129
KiXGolf Score = 610

[edit]
KiXGolf Score = 598
[edit2]
KiXGolf Score = 583
[edit3]
KiXGolf Score = 568


Edited by Lonkero (2004-07-26 08:08 PM)
_________________________
!

download KiXnet

Top
#123719 - 2004-07-26 08:27 PM Re: KiXgolf: Vigenere Cipher - Private coding
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
damn, found a bug in my code, and maby even a bug in kix... this will effect my score


Top
#123720 - 2004-07-26 08:30 PM Re: KiXgolf: Vigenere Cipher - Private coding
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you talking about iif?
me not using it. it actually adds strokes instead of removing them.
_________________________
!

download KiXnet

Top
#123721 - 2004-07-26 09:02 PM Re: KiXgolf: Vigenere Cipher - Private coding
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
KiXtart Golf Score
Tournament = KiXtart Golf: Vigenere Cipher
Valid Cipher Ops = 10 (111%)
Processing Start = 2004/07/26 21:52:35.596
Processing End = 2004/07/26 21:52:35.736
Duration = 0000/00/00 00:00:00.139
KiXGolf Score = 564

Thank you for participating in KiXtart Golf!


[edit]
KiXGolf Score = 561
[edit2]
KiXGolf Score = 552
[edit3]
KiXGolf Score = 546
[edit4]
KiXGolf Score = 539

me only one doing this?

[edit5]
KiXGolf Score = 537
[edit6]
KiXGolf Score = 534
[edit7]
KiXGolf Score = 531


Edited by Lonkero (2004-07-26 10:52 PM)
_________________________
!

download KiXnet

Top
#123722 - 2004-07-26 11:06 PM Re: KiXgolf: Vigenere Cipher - Private coding
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Code:

KiXtart Golf Score
Tournament = KiXtart Golf: Vigenere Cipher
Valid Cipher Ops = 7 (78%)
Processing Start = 2004/07/26 15:48:50.759
Processing End = 2004/07/26 15:48:50.806
Duration = 0000/00/00 00:00:00.046
KiXGolf Score = 606




bug found and fixed... well not the IIF bug.
I am not sure why i am only getting 7 out of 10... but my own testing code is working....

Code:

$iRC=SETOPTION('Explicit','on')
$iRC=SETOPTION('NoVarsInStrings','on')
$iRC=SETOPTION('WrapAtEOL','on')
;$iRC=SETOPTION('CaseSensitivity','on')
dim $test,$,$Pass,$text,$as,$thing,$iTotal,$ivalid
dim $asVigenere[9]
call "kixgolf_vigenere.udf"

$asVigenere[0]='KIXGOLF','','KIXGOLF'
$asVigenere[1]='KIXGOLF TOURNAMENT','','KIXGOLF'
$asVigenere[2]='KIXGOLF TOURNAMENT','','KIXGOLF TOURNAMENT'
$asVigenere[3]='KiXgolf','','KiXgolf'
$asVigenere[4]='KiXgolf Tournament','','KiXgolf v422'
$asVigenere[5]='Blaise de Vigenere was born in 1523 and received the normal education of a noble of his period, even though he was not a noble.','','Vigenere Cipher'
$asVigenere[6]='The Vigenere cipher basic construction is a combination of a Caesar shift combined with a keyword','','CrYptoGraPhy'
$asVigenere[7]='1234567890','','abcdefghijk'
$asVigenere[8]='abcdefghij','','1234567890'
$asVigenere[9]='Finished!','','Did you win'
$iTotal=ubound($asVigenere)
$iValid=0


for each $thing in $asVigenere
$text = $thing[0]
$pass = $thing[2]
if vigenere(vigenere($text,$pass),$pass,1) <> $text
? $text
? vigenere($text,$pass)
? vigenere(vigenere($text,$pass),$pass,1)
? $pass
else
? "PASS"
endif
next



I don't know if i will be able to get below 600....

Top
#123723 - 2004-07-26 11:12 PM Re: KiXgolf: Vigenere Cipher - Private coding
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, while you try:
KiXGolf Score = 528

just wonder, if the pasted code is your own, it looks rather the same as the original.

nope, it doesn't.
you have case-sensitivity turned off.

[edit]
KiXGolf Score = 525


Edited by Lonkero (2004-07-26 11:17 PM)
_________________________
!

download KiXnet

Top
#123724 - 2004-07-26 11:21 PM Re: KiXgolf: Vigenere Cipher - Private coding
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
I figured since we were not doing the "AaBa01" cipher, case-sensitivity is no longer needed.

and the Kixgolf gods are laughing at me.... KiXGolf Score = 600

Top
#123725 - 2004-07-26 11:24 PM Re: KiXgolf: Vigenere Cipher - Private coding
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eh, what cipher we are not using?
case-sensitivity is not needed but as it's in the rules, it is must part.

and, you need either lots of "==" or case-sensitivity.
remember, the cipher still has to include uppercase&lowercase&numbers.
_________________________
!

download KiXnet

Top
#123726 - 2004-07-26 11:25 PM Re: KiXgolf: Vigenere Cipher - Private coding
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
yes! below 600!!

KiXGolf Score = 588


Top
#123727 - 2004-07-26 11:27 PM Re: KiXgolf: Vigenere Cipher - Private coding
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
KiXtart Golf Score
Tournament = KiXtart Golf: Vigenere Cipher
Valid Cipher Ops = 10 (111%)
Processing Start = 2004/07/27 00:16:59.494
Processing End = 2004/07/27 00:16:59.644
Duration = 0000/00/00 00:00:00.149
KiXGolf Score = 517
_________________________
!

download KiXnet

Top
#123728 - 2004-07-26 11:57 PM Re: KiXgolf: Vigenere Cipher - Private coding
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Ok, i am very confused on the use of lcase words in the cipher table....

if i am understanding this right, we are not using lcase words for the cipher table, but are to carry the case of a letter through to the finished cipher?

Bryce

Top
#123729 - 2004-07-27 12:09 AM Re: KiXgolf: Vigenere Cipher - Private coding
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
I thought we were using lcase letters in the cipher table.

I personally need to go back and revisit the offset issue. I'm not really using it yet, but i'm still 10 out of 10 correct.
_________________________
Eric

Top
#123730 - 2004-07-27 12:11 AM Re: KiXgolf: Vigenere Cipher - Private coding
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
still finding something...
KiXGolf Score = 514

KiXGolf Score = 510

KiXGolf Score = 507


Edited by Lonkero (2004-07-27 12:24 AM)
_________________________
!

download KiXnet

Top
#123731 - 2004-07-27 12:59 AM Re: KiXgolf: Vigenere Cipher - Private coding
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
grrr.... i am going backwards!!

Code:
Tournament       = KiXtart Golf: Vigenere Cipher
Valid Cipher Ops = 10 (111%)
Processing Start = 2004/07/26 17:50:17.676
Processing End = 2004/07/26 17:50:17.739
Duration = 0000/00/00 00:00:00.063
KiXGolf Score = 664



but i got all bugs out of tables i hope.... :P


Top
Page 3 of 8 <12345>Last »


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 628 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.088 seconds in which 0.03 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org