My Firefox extension needs to;
- store user credentials in a file that will be stored in users local filesystem.
- when credentials are needed, decrypt file read values and encrypt it again.
- sometimes send encrypted file over http to a server.
I cant find any XPCOM component to encrypt / decrypt a file. Should i write my own XPCOM object, or is there any other reasonable solution for that.
[Note:] This may like Firefox's password management system. Firefox stores master password and keys in key3.db file and use these values to access credentials stored in signons.sqlite file.
Firefox uses nsILoginManager interface for its operations.