Sorry, I forgot to say that others classes like Integer, Float and Character are already implementing the message hex.
Best, Mariano On Wed, Aug 12, 2009 at 8:26 PM, Mariano Martinez Peck < [email protected]> wrote: > Hi folks: Me and the rest of the team is developing SqueakDBX which is a > driver to talk with major databases. However, I think the most persistence > alternatives pharo has, the best. There is no better solution for every > escenario. So, I am also trying to get the PostgreSQL native driver to work > in Pharo. This package depends on Cryptography because of MD5. I know that > there were added to Pharo packages like System-Hashing-core, > System-Hashing-SHA1 and System-Hashing-MD5. However, the driver doesn't work > yet. But adding this single method: > > ByteArray>>hex > | stream | > stream _ '' writeStream. > self do: [ :each | > stream > nextPut: ('0123456789ABCDEF' at: each // 16 + 1); > nextPut: ('0123456789ABCDEF' at: each \\ 16 + 1)]. > ^ stream contents > > The driver works like a charm in Pharo without needing Cryptography > package. As far as I remember there were no MIT problem with this package. > Because of this those packages ( System-Hashing-core, System-Hashing-SHA1 > and System-Hashing-MD5) were integrated in Pharo. > > So, can I add it? > > Thanks > > Mariano >
_______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
