<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/13679" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2007-07-01T18:51:03-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/13679</id>

		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2007-07-01T18:51:03-04:00</updated>

		<published>2007-07-01T18:51:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74097#p74097</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74097#p74097"/>
		<title type="html"><![CDATA[string encryption without eggdrop tcl commands?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74097#p74097"><![CDATA[
I still don`t get how this is supposed to work.<br><div class="codebox"><p>Code: </p><pre><code>proc test { } {package require aesset sixteen_bytes_key_data "1234567890123456"set sixteen_byte_iv "1234567890123456"set Key [aes::Init cbc $sixteen_bytes_key_data $sixteen_byte_iv]set plaintext "1234567890123456"set ciphertext [aes::Encrypt $Key $plaintext]puts "ciphertext: $ciphertext"set decr [aes::Decrypt $Key $ciphertext]puts "decr: $decr"aes::Final $Key}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Sun Jul 01, 2007 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-30T07:33:02-04:00</updated>

		<published>2007-06-30T07:33:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74036#p74036</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74036#p74036"/>
		<title type="html"><![CDATA[string encryption without eggdrop tcl commands?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74036#p74036"><![CDATA[
Worth mentioning is that each character equals 1 byte.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jun 30, 2007 7:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2007-06-30T03:52:39-04:00</updated>

		<published>2007-06-30T03:52:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74029#p74029</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74029#p74029"/>
		<title type="html"><![CDATA[string encryption without eggdrop tcl commands?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74029#p74029"><![CDATA[
"my_key" = 6 bytes (8 bits per byte) = 48 bits.  <br><br>128 bits = 16 bytes, 192 bits = 24 bytes, 256 bits = 32 bytes<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Jun 30, 2007 3:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2007-06-30T03:35:12-04:00</updated>

		<published>2007-06-30T03:35:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74028#p74028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74028#p74028"/>
		<title type="html"><![CDATA[string encryption without eggdrop tcl commands?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74028#p74028"><![CDATA[
Tosser^^, I used your example. But got an error "invalid key size "48": must be one of 128, 192 or 256".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Sat Jun 30, 2007 3:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-06-29T10:20:24-04:00</updated>

		<published>2007-06-29T10:20:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74007#p74007</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74007#p74007"/>
		<title type="html"><![CDATA[string encryption without eggdrop tcl commands?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74007#p74007"><![CDATA[
It would be the same as the encrypt and decrypt command:<br><div class="codebox"><p>Code: </p><pre><code>set key "my_key"set data "some data here to encrypt"set encrypted [aes::encrypt $key $data]set decrypted [aes::decrypt $key $encrypted]</code></pre></div>or<br><div class="codebox"><p>Code: </p><pre><code>set key "my_key"set data "some data blah blib"set encrypted [aes::aes -mode cbc -dir encrypt -key $key $data]set decrypted [aes::aes -mode cbc -dir decrypt -key $key $encrypted]</code></pre></div>Thats how i have used it in the past, hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Fri Jun 29, 2007 10:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2007-06-28T18:00:04-04:00</updated>

		<published>2007-06-28T18:00:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73986#p73986</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73986#p73986"/>
		<title type="html"><![CDATA[string encryption without eggdrop tcl commands?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73986#p73986"><![CDATA[
I simple want to encrypt a plaintext with a password, send it over an unsecure connection and decrypt it with the same key on the other point.<br><br><a href="http://tcllib.sourceforge.net/doc/aes.html" class="postlink">http://tcllib.sourceforge.net/doc/aes.html</a> looks fine and is currently known as secure. The example on the page isn`t enough for me, I need an example for decrypt aswell.<br><br>Would be cool if someone who understand that could write an example de- and encrypt.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Thu Jun 28, 2007 6:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2007-06-28T13:36:35-04:00</updated>

		<published>2007-06-28T13:36:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73981#p73981</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73981#p73981"/>
		<title type="html"><![CDATA[string encryption without eggdrop tcl commands?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73981#p73981"><![CDATA[
Can't you use something from tcllib like yencode of uuencode?<br><br><a href="http://tcllib.sourceforge.net/doc/index.html" class="postlink">http://tcllib.sourceforge.net/doc/index.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Thu Jun 28, 2007 1:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-28T10:37:36-04:00</updated>

		<published>2007-06-28T10:37:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73971#p73971</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73971#p73971"/>
		<title type="html"><![CDATA[string encryption without eggdrop tcl commands?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73971#p73971"><![CDATA[
The encryption used by eggdrop is in most cases based on the blowfish algorith. Unfortunately, this is a somewhat calculation-heavy encryption, making implementation in pure tcl "sluggish". I would therefore recommend implementing it as a loadable module to gain some performance.<br><br>That said, a nice site on the blowfish algorithm (with several examples in different languages) can be found <a href="http://www.schneier.com/blowfish.html" class="postlink">here</a>.<br><br>As for your request for premade scripts, unfortunately I can't think of any at this moment.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Jun 28, 2007 10:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2007-06-28T10:27:24-04:00</updated>

		<published>2007-06-28T10:27:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73969#p73969</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73969#p73969"/>
		<title type="html"><![CDATA[string encryption without eggdrop tcl commands?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73969#p73969"><![CDATA[
I am about to write my encrypted dcc chat. Dcc chat from tclsh to eggdrop is kinda easy with socket.<br><br>Eggdrop has the decrypt and encrypt command, very easy to use. But tclsh doesn`t has this command since it`s not an eggdrop.<br><br>Can you advise me a premade script with secure encryption?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Thu Jun 28, 2007 10:27 am</p><hr />
]]></content>
	</entry>
	</feed>
