au2001 / icloud-passwords-firefox

Firefox extension which lets you use your passwords stored on iCloud Keychain®.
https://addons.mozilla.org/en-US/firefox/addon/icloud-passwords/
Apache License 2.0
76 stars 5 forks source link

Remove SJCL dependency #22

Closed au2001 closed 6 months ago

au2001 commented 7 months ago

SJCL was used for SRP because that's what Apple's extension uses too. It's required for AES encryption/decryption, SHA256 hashing, big numbers, bit array manipulation, binary/hex/base64/utf8 transcoding, and a bunch of known group constants. Those are all very standard, so that should be feasible with the browser's built-in libraries or a very lightweight library.

Originally posted by @aurelien-garnier in https://github.com/aurelien-garnier/icloud-passwords-firefox/issues/16#issuecomment-1802204552