MC passwords in images?
John M McIntosh
johnmci at smalltalkconsulting.com
Sat Nov 5 03:40:47 UTC 2005
Ah, which is why FFI is a good thing because I don't need to rummage
about the bottom of the VM and operating system to provide this
functionality.
On 4-Nov-05, at 7:23 PM, Bert Freudenberg wrote:
> The right place to store passwords in Mac OSX is the system-wide
> keychain. It turned out to be really easy to use - one FFI call to
> store a password, another one to retrieve it. Code attached.
>
> For more information, see http://developer.apple.com/documentation/
> Security/Reference/keychainservices/
>
> "add password"
> SecKeychain addInternetPassword: 'squeak' forUrl: 'http://
> bert at source.impara.de/' asUrl
>
> "get password"
> SecKeychain findInternetPasswordForUrl: 'http://
> bert at source.impara.de/' asUrl
>
> - Bert -
>
> <SecKeychain.st>
>
--
========================================================================
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
========================================================================
===
More information about the Squeak-dev
mailing list
|