Re: how to save secret user information on a SmartCard?

From: germy (futureback_mail_at_yahoo.de)
Date: 07/05/05


Date: Tue, 5 Jul 2005 03:55:01 -0700


"Jakub Gwozdz" wrote:

> germy napisał(a):
> > i have to write a program that saves user information on a SmartCard as a
> > scool-project.
> >
> > the program should read out the user's id and password from the card. with
> > this information it should log the user in to an existing application.
> > sorry, i'm very new to this, how can these informations be saved securely on
> > a smartcard?
> >
> > at the moment i think it can be done this way:
> > the hash-values of the id and the password are stored on the card and my
> > application knows the key to decrypt these.
> > but i'm not shure if this is secure, can someone explain me how such things
> > are done in practice?
>
> As long as your normal software needs to know the decryption key (no
> matters if its RSA private key or 3DES symmetric key) this solution
> wouldn't be secure. It's to easy to rip it of this.
>
> You should get a smartcard with PKCS#11 middleware interface
> (MS-CryptoApi won't help here). It needs to be able to store data on
> smartcard (Cryptoki CKO_DATA objects), not only keys and certificates.
> Those data objects should be created as private token objects
> (CKA_PRIVATE and CKA_TOKEN attributes set to TRUE). Now they can be
> accessed only after successful login (user must enter valid PIN).
> That's it. No further encryption/hashing is needed. And data objects may
> be in plain txt: "guest:1234qwer",
> xml: "<user><login>guest</login><pass>1234qwer</pass></user>" or any
> other format your application can read. They are safe as long as anybody
> wouldn't get your smartcard and pin.
>
> The only safer solution based on user/password scheme is to encrypt
> credentials with host-specific key material, but such encrypted
> user/password wouldn't be usable on another machine.
>
> Best regards
> Jakub Gwóźdź
>

first, thank you for your fast reply

i have to use a GemSafe SmartCard for this Project, this card supports
private token objects, so i think it is suitable for this task.

but your post sounds like the user has to enter the pin every time he wants
to log in to the program.
but the advantage of my program should be that the user doesn't have to
enter anything (neither his id and password, nor the pin of the card), only
insert the card into the reader....

the more i'm thinking of this, the more i'm of the opinion that it isn't
possible to do this 100% secure.
either the application knows the pin or key which is easy to rip of, or the
data is stored unprotected on the card and i have to trust the user not to
lose the card or give it away

or are there other ways to solve the problem? please help me, it's very
important for me.

best regards
germy



Relevant Pages

  • Re: HELP, Vulnerability in Debit PIN Encryption security, possibly
    ... > not the case where PIN encryption had to be ... > derived from the card number because the card PIN was checked at the ... It is unlikely that the banks should have been able to hide such ... Smartcard terminals are used in environments over which the ...
    (sci.crypt)
  • Re: how to save secret user information on a SmartCard?
    ... > insert the card into the reader.... ... I don't know GemSafe, but if their idea of "private token objects" is ... Login may be needed only to write data to smartcard, ...
    (microsoft.public.platformsdk.security)
  • Re: smart card versus credit card
    ... The claimed projections of fraud levels presumably include significant ... the use of a PIN, if known only to the authorised cardholder, is as good ... attorney over the card. ... Regardless of the technology in/on a smartcard, the PIN is ...
    (sci.crypt)
  • Re: how to save secret user information on a SmartCard?
    ... oh, i see, the gemsafe csp is fully PKCS#11 compatible, so it is possible to ... store data on the token without pin request. ... > the need of having credentials physically (smartcard with login/pass). ... data unprotected on the card... ...
    (microsoft.public.platformsdk.security)
  • Re: Broadcom Trusted Platform Module?
    ... >>why the slam for the smartcard reader? ... I've tried plugging in a couple of smart cards (credit card, ... >>much easier to use for smartcard applications ... Some uses require additional middleware to be installed before the ...
    (alt.sys.pc-clone.dell)

Quantcast