APDU to change Mifare Ultralight C authentication - c#

I'm new to NFC programming and wanted to know how I can change the authentication access on a Mifare ultralight C tag.
I mean, can I make the tag write protected with a secret key as I would with Mifare Classic 1k, and then authenticate to write new data again?
There isn't much documentation out there explaining how to do this process...I have a ACR122 card reader to work on this, and I'm using C# to build a windows application.
Any help would be much appreciated, and/or if you have samples codes, that would be awesome.

I wanted to post my findings in case someone needs in the future. Although I'm still having problems figuring out how to write protect the Mifare Ultralight C tag temporarly. So in case someone knows how to do it, please let me know. Any sample code would be helpful.
So, found the docs that I needed to get more familiar with the Mifare Ultralight C tag and its security implementation, here are the links in case someones needs it.
http://www.nxp.com/documents/application_note/1303.pdf, http://www.nxp.com/documents/short_data_sheet/MF0ICU2_SDS.pdf, http://csrc.nist.gov/publications/nistpubs/800-67-Rev1/SP-800-67-Rev1.pdf, http://www.nxp.com/search?q=137631&type=keyword&rows=10

Related

Encryption issue in windows phone 8

I'm designing a Windows Phone 8 app where I need to save certain credentials and message backups as a Parse object. So, while I'm taking data from the user end I want to preserve privacy of the clients. So, why not encrypt it. But then again I need to decrypt it back on client side. Say, there's a message "I'll be late". So, I want it to be encrypted to say "###%&**))^^^__673asdh" and saved in backend which makes absolute no sense to me. Again this encrypted message is read back to the front end client as and when required as the original message that he stored. Please suggest a good library. is AES a good option? Sorry for the question. I'm basically a noob in cryptography! Thanks.
If you are noob in cryptography - do not use encrytion/decryption primitives. Encryption/decryption method is only a part where proper use of the method is very important too. Try to find some crypto library that will do the work for you. At start you can read about Crypto++ library and BounceCastle, inspect the exmaples in this libraries.

Facebook - Get Last Status Updates From Feed

Given a facebook username and password, how do I grab the latest status updates from his feed? Moreover, i'd like to know how to get last updates from user profile.
I'm having trouble finding an answer to this question, and I'd like to know whether it could by done using PHP or C# (C# is prefrred). I'd be grateful if anyone could point me to the solution, thanks in advance !
You can easily do that by using the Facebook Graph API in any language. I suggest you should look at the API documentation, specifically the User Reference Doc (you can retrieve any user's status updates using this). It might take some time to understand how it all work, but you can retrieve user information very easily, provided you have the knowledge of a specific language and you understand how the Graph API actually works (there are plenty of example on the developers' website).
Also, you don't even require user's password for this. All you need is the user's id or username and some permissions from that user (or simply an Access Token).
PS: If you have any specific problem in your code, please update your question with some code that you've written till now and I'll be happy to help you with that.

Upload from C# to GDrive

Please help. I am looking for a way to upload a file to Google Drive with my app. The Google Account in question will be a specific one, i.e. not the client's account, a 'Service' account. I've tried to Google it, but I can't find anything that seems to do what I want, And the API reference I probably don't understand. I have been thrown in the deep end for a project. Any source or links to help Please! I am not asking anyone to write my source, but if it exists, it would be nice.
Note: This is my last hope. I don't ask a question unless there is nooooo other way.
(I am using Windows Forms)
Thanks
Jacques
EDIT: It is always signing in to MY drive, whether I am using it or you are using it. I have also posted this question to CodeProject to harness maximum brain power.
PermaLink: http://www.codeproject.com/Questions/652006/Upload-from-Csharp-to-GDrive
This page tells you what you need to know about authorizing a service account https://developers.google.com/drive/service-accounts
This page shows you the C# required to upload a file, once you have been authorized https://developers.google.com/drive/v2/reference/files/insert
Treat the authorization and the uploading as two separate problems and you'll find life much easier. The end result of the authorization procedure is an access token. Give that access token the insert API and you're all set.

.NET BarCode Reader in WPF

I am trying to see whether its possible to read the barcode in WPF Applications without using any 3rd party tools. We built an application using WPF and they are not willing to buy any third party devices to read the barcode. Is there any other way to read the barcode data in WPF Applications using .NET APIS?
Note: I seen examples in .NET, but most of them using Barcode reader tool. I have seen examples in Android ZXing library does that with out any tools like barcode reader or scanner.
Any ideas or thoughts is greatly appreciated.
Thanks,
Ramesh
In order to shorten the discussion in comments and possibly help other people with similar problem, I will summarize it here.
It is not clear to me whether the real question you wanted to ask is "does .NET provide barcode reader class". If so, the answer is no.
Now, since WPF application is just a normal .NET application, for sure it is possible to implement barcode reading without 3rd party libraries. All the algorithms are public, there is plenty of open source implementation which can serve as reference, and .NET provides all you need to talk to the peripherals, acquire the image and analyze it. You "just" need to code it.
E.g. there is a C# port of ZXing, so you can take a look (though it looks like automatic translation from Java, so I wouldn't expect much idiomatic C# in there).
You also mention that your customers "are not willing to buy any third party devices". I am not sure if 'devices' was meant to read 'libraries'. If so, there are open source libraries which they (or you) don't have to pay, and commercial components usually provide royalty free licenses (e.g. the first one that google showed), which means that only you have to pay the development license, but your customer doesn't even know about it.

RFID brand: ACS; model: ACR122

Does anyone know what are the codes in writing and reading of data in the Mifare 1K card?? we uses c#.
from DreamInCode, check the comment by Goethals:
"Pretty hard to find some decent
documentation on Smardcards isn't it?
Had some rough time trying to get it
work too some time ago. (Did not get
it to work completely yet, ran out of
time)
The best way i found as of yet is to
invoke the Winscard.dll api.
The following articles contain some
valuable information on how to:
http://www.aspfree.com/c/a/.NET/Smart-Cards-in-.NET/
http://www.aspfree.com/c/a/C-Sharp/Smart-C...in-.NET-Part-2/
http://www.aspfree.com/c/a/.NET/Smart-Cards-in-NET-Part-3/
Its C#, but that should not be a big
problem.
Some random info from the following
blog helped me too: (Contains
explenation for some of the error
codes.)
https://github.com/geersch/MonitoringSmartcardReader
On the MSDN website, there is also
some information regarding
Winscard.dll. (Do a search on Smard
Card or SCard, you should find some
articles.)
I also found some documentation on the
website of OmniKey. (The manifacturer
of the Smard Card Reader I am using.)
http://www.omnikey.com/index.php?id=68
The omnikey website is often down
though.
Hope this helps you out a bit. Cheers!
"
also you can check out (this in C) the RFID C Library
I've also just found out that mathias4u has developed a ACR122 plug-in that supports the mifare 1k, you can download it here
I hope that helps! :)

Categories