[Gambas-user] crypt.md5 vs md5sum

Jussi Lahtinen jussi.lahtinen at ...626...
Mon Jun 11 18:38:35 CEST 2012


"The crypt algorithm is encoded in the crypt string, so you do not need to
specify it."
http://gambasdoc.org/help/comp/gb.crypt/crypt/check?v3

So, I don't think you can use it to get clear MD5 sums.

But you can use this;

Dim sPassword As String
Dim sCheckSum As String

sPassword = "MyPassWord"
Shell "echo -n '" & sPassword & "' | md5sum" To sCheckSum
sCheckSum = Left$(sCheckSum, 32)

Print sCheckSum

Jussi



On 11 June 2012 18:55, Demosthenes Koptsis <demosthenesk at ...626...> wrote:

> even i set a prefix the result is different.
>
> and i dont know what prefix to use to have the same result with md5sum?
>
>
> Στις 11/6/2012 18:51, ο/η Adrien Prokopowicz έγραψε:
> >
> > 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list