Pin encrypt secrets #633

Closed
opened 2023-09-17 10:53:09 +00:00 by Kieran · 2 comments
Owner

Use PBKDF2 to encrypt nsec / wallet details in session

  • Private key encryption
  • Wallet encryption
Use PBKDF2 to encrypt nsec / wallet details in session - [x] Private key encryption - [ ] Wallet encryption
Kieran added the
enhancement
label 2023-09-17 10:53:09 +00:00
Contributor

Wait, what? "Pin" sounds like something that's trivial to brute-force and if you mean "passphrase", ... I'm curious to know what you are working on here but I'm too paranoid to consider exposing nsecs to nostr clients a good idea anyway, so I'd prefer the removal of nsec handling over some pin/passphrase protection that any browser extension can work around by reading the nsec once the user provided the pin.

Wait, what? "Pin" sounds like something that's trivial to brute-force and if you mean "passphrase", ... I'm curious to know what you are working on here but I'm too paranoid to consider exposing nsecs to nostr clients a good idea anyway, so I'd prefer the removal of nsec handling over some pin/passphrase protection that any browser extension can work around by reading the nsec once the user provided the pin.
Author
Owner

Yes a pin, 4 or more digits, then using Scrypt to generate to a key and encrypting with xchacha20+hmac-sha256

It offers some protection, which is better than nothing

Yes a pin, 4 or more digits, then using Scrypt to generate to a key and encrypting with xchacha20+hmac-sha256 It offers some protection, which is better than nothing
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Kieran/snort#633
No description provided.