generate MF_password for a JCOP applet to access mifare ?

Where can I download any tools to generate MF_Password?I find nothing in the Philips website.Or I should implement a generation function within the applet?Great thanks! ^_^
[200 byte] By [trylansa] at [2007-10-3 3:57:03]
# 1

> Where can I download any tools to generate

> MF_Password?

> I find nothing in the Philips website.

> Or I should implement a generation function within

> the applet?

>

> Great thanks! ^_^

u can write ur own code to change MF password,

but before write to mifare ,u have to authenticate to mifare.

Default password is FFFFFFFFFFFF

Divyesh.

divyesh_atomtecha at 2007-7-14 21:55:22 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2

Hi Divyesh,

Thanks for your response!

But I still can not understand what you mean.

I reference: http://www.nxp.com/acrobat/other/identification/067512.pdf

I only have JCOP41 eclipse help. According to the API

readWriteMifare(short mode, byte[] data, short offset, short mifareBlocks)

If I put the MF_password into the byte[] data, can I read/write mifare?

After I run the JCOP applet and trigger the mifare access with sending APDU on JCOP shell command, 9000 is replied.

But my access does not success.

Am I wrong? Or where can I reference sample applet to access mifare?

Regards,

trylans

trylansa at 2007-7-14 21:55:22 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3
I trylans,do you already have something to generate the MF_Password?Regards,Jaguar
Jaguar77a at 2007-7-14 21:55:22 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 4
Hi Jaguar,I found that MF_Password is easy to generate. Just follow the Spec to encrypt-decrypt-encrypt the initial value.
trylansa at 2007-7-14 21:55:22 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 5
Hi trylans, Thanks, I saw the specification, i'm trying to use DES to encrypt-decrypt-encrypt but I'm not having success. Can you arrange me an algorithm to do that please?Thanks.
Jaguar77a at 2007-7-14 21:55:22 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 6
when I encrypt-decrypt-encrypt several times I'm getting always different results, and none of 8 bytes....
Jaguar77a at 2007-7-14 21:55:22 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 7
Hi, now was trying with this website: http://www.cs.eku.edu/faculty/styer/460/Encrypt/JS-DES.htmlbut I can seem to have the same results of the specification examples.Please help me.Thanks
Jaguar77a at 2007-7-14 21:55:22 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 8

hi Jaguar77 ,

It's very easy,by your encrypt page try it in this way

Message = 0000000000000000 (Hexadecimal)

DES Key/Triple DES Key Part A = 007EFEFEFEFEFEFE

Triple DES Key Part B = FEFEFEFEFEFE7E00

CLICK Triple DES Encrypt

and Output message will be e73afe450757540b (Hexadecimal)

Sakada_Chaowanuea at 2007-7-14 21:55:22 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 9
Thanks Sakada.I was putting the keys in the wrong order.Thank you very much :)
Jaguar77a at 2007-7-14 21:55:22 > top of Java-index,Java Mobility Forums,Consumer and Commerce...