Smart cards data contents - applet

I want to communicate with a smart card by MCU, my MCU supports ISO7816 protocol and as I know I must use APDU commands which are specified in ISO7816-4 protocol.
With a glimpse to APDU instructions there are some idioms I'm not familiar with. For example in reading/writing a "File", what does the word "File" refer to?
In the Mifare classic 1K memory divided based on the
this picture & there is a simple sequence to read/write each section.
Is there any equivalent information about data structure of contact smart cards? How is data stored? How can we access/read/write these structures? Is there any specific document focused in this subject?
EDIT:
In the card's file management system,is file's size constant or it can be variable depend on files data?

for examples in reading/writing File ,File word refer to what?
File - A logical view of memory. ISO/IEC 7816 -4 tells about file system, can read something Here
Some specific cards like Mifare [Memory card][no file concept, data stored block wise] is ready by specific commands like - load key, authenticate_with_card, Read_block. these commands are well defined by IFD.
Ex - if you want to read Mifare card and you are using SCM reader, this
document will help you to perform Read / Write operation.
Is there any equivalent information about data structure of contact smart cards ? how data stored?
ISO 7816 tells about file structure of the card but all contact smart card does not follow it. sometimes programming is like -you just read the data from the card with sending APDU and you will get the data as a response.
and same way you can send data with Lc byte of apdu and it will store in the card.
To reading data from the card , it would be good to know about the card, get the specification from card vendor. That would help to explore the card.
Hope this information will help.
[update]
I searched local market & I found: 1-ACOS series from advanced cards systems 2- jcop from mifare 3- gemalto products. I think number 2 and 3 are kind of java cards,am i true?
JCOP [tool] is a java card tool that helps to code / debug/install applet of java card. I used Jcop plugin with eclipse IDE to develop java card applet. it is very good plugin,
Mifare is not java card , its a memory card and Gemalto have different products, how can you say that all are java card. Do some more resarch please.

Related

How do you create a 12 or 24 mnemonics code for multiple cryptocurrencies (ETH, BTC and so on..)

I just started using Flutter and I am trying to create a crypto wallet app that can support multiple different cryptocurrencies. The current issue I am facing is, is that I don't know how a mnemonics code is being generated for different cryptocurrencies when trying to create a backup for multiple wallets. I am using this library btw: https://pub.dartlang.org/packages/bip39
Any help would be much appreciated!
You can use one mnemonic code for all cryptocurrencies. As you can see in the library documentation you linked, you use the mnemonic code to get a wallet seed. That wallet seed is then used to create a HD wallet.
That single HD wallet can have many different cryptos. You differentiate between them by following the scheme in BIP44. In the accompanying SLIP44 there's a list of what HD wallet constants each currency uses.

In-Store pickup not fully available in ATG reference store?

I had a question on in-store pickup. I see that there is support for it in the CRS module (it has GeoLocatorService, GeoLocatorDroplet etc), but don't see any buttons or JSPs that display or let you use it out of the box. On the other hand, commerce service center has this functionality fully exposed, with in-store pickup buttons, popup widgets to search for stores and shopping carts showing store pickup line items etc. Looks like the web stores would need this functionality exclusively coded, which would involve creating JSPs and components as required.
Is there something I can copy over from CSC (commerce service center) that will enable store pickup in web module (store US or home US etc?) very quickly? Please let me know. Thanks for your response!
Not sure if you want to capture payment and collect from store , or reserve in store and pay when you pick up the item.
In both the cases your DOM (distributed Order Management) and WMS (warehouse management system) has important role to play. ATG can lookup the selected store inventory , both locally (location repository) or using realtime webservice interface to the system that manages your global inventory.
In all cases ATG will be able to capture the order, but this order has to be handled by DOM in such a way that its routed to local store for fulfillment. If by any chance this order is not available in local store, your DOM/ WMS system should be able to send order item to local store from warehouse or from another store.
Walmart has both the functionality available (click to collect and reserve and pay at store) , walmart has proprietary software DOM3 which eventually addresses these interfaces.
Please realize ATG is just your online order capture system, Click to Collect and any 'commerce anywhere' functionality must be offered by your DOM. if this is offered by your DOM , all you need to do is exchange messages with DOM to achieve this.
I am not sure if this answers your question, but its not recommended to over engineer ATG , and ATG should follow the heart beat of your DOM.
In Store Pickup - often called Click & Collect - has not been implemented as a feature in the CRS. It is also not in CSC either.
You will need to do quite a bit of customisation to support it.
The feature that is part of CRS is Store Locator. This allows you to find and view details of physical stores.
You can use this as a basis to build Click & Collect functionality.
Assuming that other back-end systems can handle it, and your business is set up to consider things like promotions, pricing etc. for a Click & Collect proposition...
Basically, you will need to implement a new Shipping Method, a New subtype of Hardgood Shipping Group that can use a Store Code instead of a Customer Address, as well as the UI to support choosing a store during checkout.
Depending on how sophisticated your multi channel requirements are, you may need to modify the Inventory Manager to accommodate knowing local stock in store as well as central stock.
Other shipping related entities may need to change to represent any new statuses such as Arrived in Store or Ready for Collection.
If you are using ATG Fulfilment, you may need to change messaging there to accommodate, say, conveying a store code instead of a delivery address to fulfillers and carriers.

How to merge dynamic forms with Adobe Livecycle?

I have a number PDF documents which are dynamic forms. I want to make one document that contains all pages of the fist document, then all pages of the second, and so on. How can I do it programmatically with the Java API of Adobe Livecycle Enterprise Server?
I found documentation here, but it does not work for dynamic forms. Maybe I can convert the dynamic forms to static forms first? How can I do that?
http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/common/html/wwhelp.htm?context=sdkHelp&file=001473.html
Thanks in advance for your answers.
Cheers,
Arne
It depends on how many of these you need to create. I assume you are going to be making large numbers of these PDF's. The correct thing to use is Adobe LC Output ES2. The process is first to render your dynamic XFA based forms to static PDF using the Output service with whatever data you have and then to assemble them with the Assembler service (requires a DDX file with the rules for the assembly).
There are APIs (inc. Java) to call these services directly or you can write an orchestration(in Workbench) that does all the steps and you can call the orchestration from various API's including Java. The short lived orchestration capability is also licensed with Output.
This sample would be a good thing to review to see how to construct the orchestration (service) XDP and DDX.
http://help.adobe.com/en_US/livecycle/9.0/samples/ServiceUsageSampleOutputLetterWithAttachment.html
Places to review invoking orchestrations in Java are:
http://help.adobe.com/en_US/livecycle/9.0/programLC/help/000495.html
Best of luck C.
This is how I did it:
Add a numeric field to the master pages
Mark it as calculated - read only
Select current page number, in the menu below. you can also have another with total number of pages.

Calling cards iPhone application

I am newbie to iPhone development, I want to do a kind of POC which fulfill the following requirement.
It will be basically a calling card application where user will enter a toll free number followed by pin number. After entering a pin no. it will show the available contacts from the iPhone itself, user will select a desired destination number and call it.
I know this is a whole new native application, but can anyone guide me how I can start working on the same. I have collected a few information about what calling card is and how it works. I'm a bit confused about how can I get the information from calling cards service provider?. Do i need to call there API and how to do a code in the XCODE tool?
Please help me in this regard.
A quick google of calling card api's shows that most card companies have them, but they also don't publish them. Looks like you'll have to talk directly with them and get api specs. It may cost you? I'm guessing the actual API won't be very complicated... a couple of HTTP requests and a little bit of response parsing. You might want to look into asi-http-request for building the requests, and you can probably do most of the response parsing with NSStrings or NSXMLParser if they use XML.

How can I read a Microsoft Money data file using .NET?

I have a requirement to read and import data from MS Money data file. How can I achieve this? Is there a SDK available?
I would like to have a similar mechanism to read Quicken files too.
With Microsoft discontinuing the MS Money product, I was researching the same issue to try to do a full data export of MS Money data file transaction information. The best I have been able to come across was a forum posting detailing manipulating the file to be readable via MS Access. Unfortunately, his method required purchasing a piece of software to "repair" the file to make it openable. The thread is here: http://www.archivum.info/microsoft.public.money/2007-09/msg00739.html and the text is below.
Well for $300 bucks + some custom SQL programming I finally found a way
to get out of Money jail. Here is how
Get FileBinReplace utility here http://www.softtreetech.com/24x7/script.htm
Run it as FileBinReplace *.mny "MSISAM Database" "Standard Jet DB"
Rename *.mny to *.mdb
Use AccessFIX tool ($300; search the web for a download link) to repair
the MDB file.
Query TRN and TRN_INVOICE tables as
needed.
By the way, when I saw the internal
database design in Money, I was
literally shocked. That database was
surely designed by entry-level
database programmers… students maybe…
who had little idea about relational
database design, normalization or
efficiency... Just for the record,
invoice text strings (addresses,
customer notes, lines item
descriptions, etc.. are stored tin
the same table where on-line
transactions are stored, invoice
headers and details are stored in the
same table!!! you get the idea about
who and how designed it)
I would hope since MS is no longer going to support the product or data file format that they would release the data file spec so that tools could be created to properly export existing data.
Here is also a SourceForge project for exporting MsMoney data in other formats: http://sunriise.sourceforge.net/
There is a "Class to transform an OFX (Microsoft Money) file into a DataSet" on CodeProject.
OFX has nothing to do with MS Money data file (mny).
OFX is an open standard based on sgml or xml depending on OFX version, MNY is a proprietary binary format.
MS Money can import OFX files but that's all.
If the requirement is to import only once then export from Money to csv or qif and process the exported files. Same applies to Quicken.
Money Sunset is free.
This tool is free and will perform a more comprehensive export of Microsoft Money data. I don't think it can be used programatically though. http://www.ultrasoft.com/MoneyLink/overview.shtml
If you are looking for a UK version, try http://www.microsoft.com/en-us/download/details.aspx?id=26915