[DGD] 1.2.105

Felix A. Croes felix at dworkin.nl
Fri Apr 8 13:53:01 CEST 2005


diff -c dgd/src/Changelog:1.341 dgd/src/Changelog:1.342
*** dgd/src/Changelog:1.341     Thu Apr  7 22:20:25 2005
--- dgd/src/Changelog   Fri Apr  8 00:13:50 2005
***************
*** 1628,1630 ****
--- 1628,1632 ----
     slash.
   - Introduced hash_string() as a replacement for crypt(), hash_md5() and
     hash_sha1().
+  - Reverse the key & message arguments for encrypt() and decrypt(), to make
+    it easier to extend those functions in the future.

ftp://ftp.dworkin.nl/pub/dgd/experimental/patches/1.2.104-1.2.105.gz

The key is now always the second argument for en/decrypt.  This makes
it easier to later extend the kfuns with more ciphers and more
arguments, for example

    ({ newstate, ciphertext }) = encrypt("3DES-CBC", key, state, plaintext);

Needless to say, this will require a mudlib modification if you're
using ssh to connect to your mud.  I've updated lpcssh, and the updated
source code is available through anonymous cvs.

Regards,
Dworkin



More information about the DGD mailing list