TETAS Help File

Copyright (C) 2001, 2002 Gustavo Picon


Table of contents:

  1. Introduction
  2. Function Reference
  3. Credits

I. Introduction

TETAS is a dll for the Windows IRC client mIRC. It has some encryption/hashing functions for mIRC. Nothing special. TETAS is a recursive acronym for TETAS Encryption Tools And Stuff.

Please note that I'm _not_ giving support for this dll. If you don't know how something works here, you're on your own. Study the source, even if you don't know C, you'll be able to figure out things.

I'll say that again, if you need help with this dll, don't email me, don't msg me, i'm NOT giving support for this dll. I wrote this thing because I needed the functions. I release it because some other people may find it useful. I release the source because other guys can learn from it. But I WILL NOT help you with it. I'm sorry, I just don't have enough time, and I'm not very helpful anyway, I always confuse people...


II. Function Reference

The functions should be called with $dll(), not with /dll, because all the functions have return values.

All functions will return:

"+<code> [string]" on a success or

"-<code> [string]" on a failure


blowfish

Blowfish encryption for mIRC. This function uses the same routines used by the eggdrop bot.

Syntax

blowfish encrypt <key> <string>
blowfish decrypt <key> <encryptedstring>
blowfish encpass <password>

Parameters

key
Key to use to encrypt/decrypt.
string
String to encrypt
encryptedstring
String to decrypt
password
Password to encrypt

Remarks

The decrypt subfunction will decrypt a string previously encrypted by encrypt. The same key must be used to get the original string. Note that when using the encrypt subfunction, some keys will produce the same encrypted string, specially similar keys. This is _normal_, the original eggdrop functions have the same behavior. If you feel paranoid about this, run encpass to your original key, and use the encrypted string as the key for encrypt.
The encpass function will encrypt the password with a one-way encryption algorithm, it can't be decrypted.

Return Values

-KEY Invalid Key
-STRING Invalid String
-FUNC Unknown subfunction
+OK <return_value>

Example Code

$dll(tetas.dll, blowfish, encrypt my_key some string)
$dll(tetas.dll, blowfish, decrypt my_key iZiW0/n9vYN0SU3qq.4h4PT1)
$dll(tetas.dll, blowfish, encpass foo)

md5

Quoting the PHP manual: "Calculates the MD5 hash of str using the RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash. The hash is a 32-character hexadecimal number."

Syntax

md5 <string>

Parameters

string
String to be encrypted

Remarks

blablablablabla

Return Values

-STRING enter a string to encrypt
+OK encrypted_string

Example Code

$dll(tetas.dll, md5, mypass)
$dll(tetas.dll, md5, Hi Bunni! how are you?)

dllinfo

Returns some info about the dll.

Syntax

dllinfo

Parameters

Return Values

+OK md5.dll <VERSION> (C) Gustavo Picon (http://www.airc.ws)

Example Code

$dll(tetas.dll, dllinfo, -)

III. Credits