Machine ID

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Machine ID

Sebastián Sastre
Hi all,

    a fresh installation of dolpihn st reveals a machineID, and the fixed or
floating licences are interesting options.

    Anybody knows how to use a ProtectedProductSerialNumber have a machine
ID?

    I find this class could easily have a newTrial constructor, and an
isExpired method. In fact I made it. I think it should be part of the
standard dolphin.

    best regards,

Sebastián Sastre
[hidden email]
www.seaswork.com.ar


Reply | Threaded
Open this post in threaded view
|

Re: Machine ID

Larry-2
On Fri, 13 Aug 2004 18:03:31 -0300, Sebastián Sastre wrote:

> Hi all,
>
>     a fresh installation of dolpihn st reveals a machineID, and the fixed or
> floating licences are interesting options.
>
>     Anybody knows how to use a ProtectedProductSerialNumber have a machine
> ID?
>
>     I find this class could easily have a newTrial constructor, and an
> isExpired method. In fact I made it. I think it should be part of the
> standard dolphin.
>
>     best regards,
>
> Sebastián Sastre
> [hidden email]
> www.seaswork.com.ar

So what is the code?  Thanks.
--

Larry
email is rapp at lmr dot com
08/14/04 9:45:43 AM


Reply | Threaded
Open this post in threaded view
|

Re: Machine ID

Sebastián Sastre
Larry,

    make a subclass of ProtectedProductSerialNumber and put this class
methods:
>>newFloatingTrial

| months |

months := (Date today addDays: self trialDays) monthsSince: self baseDate.

^ self productId: self newProductId expiry: months flags: 0

>>baseDate

^ Date fromDays:36433

>>

newFloatingTrialDays: anInteger

| months |

months := (Date today addDays: anInteger) monthsSince:self baseDate.

^ self productId: self newProductId expiry: months flags: 1


    As this also is an important part of the development process, here I'm
coming again:

    anybody knows how to get a machine ID for your installed product? or how
to make use of this feature?

thanks,

--
Sebastián Sastre
[hidden email]
www.seaswork.com.ar





"Larry" <[hidden email]> escribió en el mensaje
news:1rcl8lyw961v6$.[hidden email]...
> On Fri, 13 Aug 2004 18:03:31 -0300, Sebastián Sastre wrote:
>
> > Hi all,
> >
> >     a fresh installation of dolpihn st reveals a machineID, and the
fixed or
> > floating licences are interesting options.
> >
> >     Anybody knows how to use a ProtectedProductSerialNumber have a
machine

> > ID?
> >
> >     I find this class could easily have a newTrial constructor, and an
> > isExpired method. In fact I made it. I think it should be part of the
> > standard dolphin.
> >
> >     best regards,
> >
> > Sebastián Sastre
> > [hidden email]
> > www.seaswork.com.ar
>
> So what is the code?  Thanks.
> --
>
> Larry
> email is rapp at lmr dot com
> 08/14/04 9:45:43 AM


Reply | Threaded
Open this post in threaded view
|

Re: Machine ID

Christopher J. Demers
"Sebastián Sastre" <[hidden email]> wrote in message
news:[hidden email]...
>     anybody knows how to get a machine ID for your installed product? or
how
> to make use of this feature?
>
> thanks,

You could try the code bellow as an option, it will return the volume serial
number.  It is pretty simple, and is not very secure as it can probably be
manipulated.  I am not sure how OA generates their machine ID.  I think that
method is removed from the image as it is unlocked.  I would be interested
if someone can share a better way of generating machine IDs.  Also if you
are adding an expiration feature to a program make sure you lock it down if
someone turns back their clock.

DiskVolumeInformation forSystemPath serialNumber

Chris


Reply | Threaded
Open this post in threaded view
|

Re: Machine ID

Don Rylander-3
"Christopher J. Demers" <[hidden email]> wrote in
message news:[hidden email]...
> "Sebastián Sastre" <[hidden email]> wrote in message
> news:[hidden email]...
> >     anybody knows how to get a machine ID for your installed product? or
> how
> > to make use of this feature?
Ian Bartholomew posted some code for getting the default MAC address, which
you could use if you know your application has to be on a networked system.

See
http://groups.google.com/groups?q=iphlpapi+group:comp.lang.smalltalk.dolphin&hl=en&lr=&ie=UTF-8&group=comp.lang.smalltalk.dolphin&safe=off&selm=qmYl9.1735%24Fv2.149667%40wards&rnum=1

Don

> >
> > thanks,
>
> You could try the code bellow as an option, it will return the volume
serial
> number.  It is pretty simple, and is not very secure as it can probably be
> manipulated.  I am not sure how OA generates their machine ID.  I think
that
> method is removed from the image as it is unlocked.  I would be interested
> if someone can share a better way of generating machine IDs.  Also if you
> are adding an expiration feature to a program make sure you lock it down
if
> someone turns back their clock.
>
> DiskVolumeInformation forSystemPath serialNumber
>
> Chris
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Machine ID

Esteban A. Maringolo-2
Hello Don, Sebastián:

"Don Rylander" <[hidden email]> escribió en el
mensaje news:[hidden email]...
> > >  anybody knows how to get a machine ID for your installed product? or
> > >  how to make use of this feature?
> Ian Bartholomew posted some code for getting the default MAC address,
which
> you could use if you know your application has to be on a networked
system.

That proven to be useful in networked environments, where one system tracks
an logs the MAC Addresses of stations, but be aware that in most recent
ethernet adapters (and not so) the MAC address can be "faked", placing on it
any arbitrary address, and it's not a hack, it's a feature of the NIC
driver.

Best regards,

--
Esteban.