Skip to content

A-1213877919321098: migrate Cipher to Web Crypto API#252

Merged
owlsua merged 8 commits into
mainfrom
A-1213877919321098
Apr 10, 2026
Merged

A-1213877919321098: migrate Cipher to Web Crypto API#252
owlsua merged 8 commits into
mainfrom
A-1213877919321098

Conversation

@owlsua
Copy link
Copy Markdown
Collaborator

@owlsua owlsua commented Apr 6, 2026

💬 Description

Migrate Cipher to Web Crypto API

More

  • Remove entropy drawing board, use Bip39.generateMnemonic() for mnemonic generation
  • Refactoring, bug fixes

📋 Checklist:

  • I have named my branch as A-[id of Asana task]
  • I have set the title of my PR as A-[id of Asana task]: [short description]
  • My changes passed successfully by prettier check
  • My changes passed successfully by lint check
  • My changes kept the previous test coverage rate
  • I have added enough tests for my new feature/bugfix
  • I have set at least one person to review this PR
  • I have set myself as the assignee of this PR
  • I have set at least one label to this PR

owlsua added 4 commits April 3, 2026 23:20
Replace node-forge and pbkdf2 with native crypto.subtle for PBKDF2,
AES-GCM, and random byte generation. Store kdfIterations per account
and auto-migrate legacy accounts from 10k to 600k iterations on login.
…r mnemonic generation

Replace mouse-drawn entropy with cryptographically secure crypto.getRandomValues(16 bytes)
for BIP39 mnemonic generation. Remove Entropy component, related state, and renumber
CreateAccount steps from 6 to 5.
@owlsua owlsua self-assigned this Apr 6, 2026
@owlsua owlsua added crypto enhancement New feature or request dependencies Pull requests that update a dependency file labels Apr 6, 2026
@owlsua owlsua requested a review from anyxem April 7, 2026 19:36
Use encryptionVersion field in accounts instead of raw kdfIterations.
Each version inherits from previous, making it easy to add new encryption
parameters (encoding, hexWrap, etc.) in future versions.
anyxem
anyxem previously approved these changes Apr 9, 2026
@owlsua owlsua merged commit 2b4a4c7 into main Apr 10, 2026
1 check passed
@owlsua owlsua deleted the A-1213877919321098 branch April 10, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crypto dependencies Pull requests that update a dependency file enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants