From: John D'Errico on
"hamza Muhammad" <k3wl_racer(a)hotmail.com> wrote in message <i07kl1$t8a$1(a)fred.mathworks.com>...
> "John D'Errico" <woodchips(a)rochester.rr.com> wrote in message <hu5f0k$lnj$1(a)fred.mathworks.com>...
> > "hamza Muhammad" <k3wl_racer(a)hotmail.com> wrote in message <hu5bnk$feg$1(a)fred.mathworks.com>...
> > > Can anyone please give me a matlab code for message authentication code?
> >
> > Certainly. Here is a message authentication code, written
> > specially for you.
> >
> > questdlg('Please authenticate message','Authentication','Authentic','Not authentic','Authentic')
> >
> > HTH,
> > John
>
> Hi John...I cannot find the code which you have shared...Can you kindly guide me please... regards...Hamza

It is a simple part of matlab.

help questdlg

John
From: us on
"hamza Muhammad" <k3wl_racer(a)hotmail.com> wrote in message <i07ksh$eht$1(a)fred.mathworks.com>...
> "us " <us(a)neurol.unizh.ch> wrote in message <hu5hbk$pq3$1(a)fred.mathworks.com>...
> > "hamza Muhammad" <k3wl_racer(a)hotmail.com> wrote in message <hu5bnk$feg$1(a)fred.mathworks.com>...
> > > Can anyone please give me a matlab code for message authentication code?
> >
> > what have YOU done so far to solve YOUR particular problem...
> >
> > us
>
> Hi us! i have encrypted an image and i am transmitting it across the network using TCP/IP protocol...now i need a message authentication code for authentication of data.. can You please help me? I would prefer a matlab code implementing MD5.
> Regards...Hamza

again: what have YOU done so far to solve YOUR particular problem...

us
From: Jan Simon on
Dear Hamza!

> Hi us! i have encrypted an image and i am transmitting it across the network using TCP/IP protocol...now i need a message authentication code for authentication of data.. can You please help me? I would prefer a matlab code implementing MD5.

Simply search in the FileExchange.

Of course you can use MD5 to calculate a hash value for the image. But if you plan to send the image and the MD5 sum through the net, be aware that it is possible to modify *both* of them.
I think, you need a HMAC method. Ask Google for details.

Jan