Улучшить KDF для шифрования мнемоник (SHA-256 → HKDF) #46
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Проблема
walletService.js:156-162— ключ шифрования мнемоник выводится какSHA-256(key + userId)без соли и итераций. userId предсказуем, что делает ключ уязвимым.Решение
SHA-256(key + userId)на HKDF или PBKDF2 с сольюФайлы
src/services/walletService.jsПриоритет: ВЫСОКИЙ
✅ Реализовано
Файлы:
src/utils/encryption.js(новый),src/services/walletService.js