JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
Store a String data in JavaCard
- Marshaldll
- Posts: 13
- Joined: Thu Jun 11, 2015 2:53 am
- Points :32
- Contact:
Store a String data in JavaCard
As we all know, JavaCard doesn't support String type. But now i need to store String data in JavaCard.What can i do ? any help is appreciated!
- horse dream
- Posts: 76
- Joined: Thu May 21, 2015 11:48 pm
- Points :140
- Contact:
Re: Store a String data in JavaCard
String data can be represented as byte array. Creat byte array first, and then initialize array.
e.g.
PS: The above code only works fine within the ASCII range of characters.
e.g.
Code: Select all
byte string[];
string = {'h', 'e', 'l', 'l', 'o'};
PS: The above code only works fine within the ASCII range of characters.
Who is online
Users browsing this forum: No registered users and 28 guests