Le lundi 11 juin 2012 15:39:16 Sebi a écrit : > You should use echo -n to prevent it from printing a /n character. But > anyway, they are different. -----Original Message----- > From: Demosthenes Koptsis <demosthen...@gmail.com> > Date: Mon, 11 Jun 2012 11:59:10 > To: mailing list for gambas users<gambas-user@lists.sourceforge.net> > Reply-To: mailing list for gambas users <gambas-user@lists.sourceforge.net> > Subject: [Gambas-user] crypt.md5 vs md5sum > > hello, > > i noticed a difference between crypt.md5 function and command md5sum. > Both give different results > > echo password | md5sum > is different from > crypt.md5("password") > > why is that? > > ---------------------------------------------------------------------------- > -- Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ---------------------------------------------------------------------------- > -- Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user
I've already got this problem too. That's because if you don't give any prefix, a random one is used. (see http://gambasdoc.org/help/comp/gb.crypt/crypt/md5?en&v3) But I still don't undersand why... ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user