Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Incompatibility with JNKeychain #130

Closed
idoodler opened this issue Oct 3, 2018 · 2 comments
Closed

Incompatibility with JNKeychain #130

idoodler opened this issue Oct 3, 2018 · 2 comments

Comments

@idoodler
Copy link

idoodler commented Oct 3, 2018

I am working on converting a Cordova project to an Electron project. The project used JNKeychain to save credentials to the macOS Keychain.

JNKeychain happens to save credentials via [NSKeyedArchiver archivedDataWithRootObject:] which results in a bplist (Binary Plist) in the Keychain. I am unable to read and interpret the data with simple-plist which supports bplist files.

Can anyone point me in the right direction on how to interpret the bplist data and convert it into JSON?

Thanks

@shiftkey
Copy link
Contributor

I'm not familiar with using bplist and unfortunately cannot help. Maybe one of the other plist-parsing projects knows more about this.

@idoodler
Copy link
Author

@shiftkey An option for getting binary data would fix this issue. node-keytar only returns UTF-8 data.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants