Just a few things to think about.

Thanks.

Can one ask for different passwords in a script?

Yes, the idea all along was to have an identifier to correspond to the password of interest.

I need to provide a string to the dongle to check it. How do I do that?

The rough inkling I have at this point is that the identifiers will map to information specifying which concrete password module to use, and any other parameters it needs for that; e.g. the corresponding identifiers used by that particular system, such as database table row, registry key name, dongle slot.

How does the provider know/authenticate who is asking? If I ask a file for a passwd, to whom does it give it up? Are OS read perms all we use?

Well, it depends. Different concrete classes could do totally different things. The real value is to have a common abstract interface and central module to dispatch to the correct concrete module for that password. A simple nieve file-based table would rely on OS permissions, secure file system, or removable media to give it any real security. An implementation module could certainly prompt for a password or key itself.

After reading the replies on this thread, I do see that the password getter object needs to have a state that can hold information for the concrete modules, so that (for example) the script's user can be authenticated once and then the key is remembered for the life of the script.

—John


In reply to Re: Re: How about a module for "passwords"? by John M. Dlugosz
in thread How about a module for "passwords"? by John M. Dlugosz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.