Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

aes加密可否添加salt使用hkdf派生key

Open
#372 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
swift

Research direction

No file or test is named. Start by locating the existing AES-GCM encryption and decryption implementation, then assess the proposed HKDF-derived key and compatibility behavior for messages without a salt. Done means the scope and backward-compatibility requirements are defined and verified with appropriate encryption tests.

Written by the indexing model from the issue text.

Description

使用aes gcm加密如果iv重复就不能保证安全性了,可否在在iv字段外再加个salt字段(16字节或32字节随机),主key和salt通过hkdf派生出子key用作aes加解密的key,这样只要主key不泄露安全性就万无一失了,如果客户端没提交salt使用原来的方法解密保证兼容性。

Dominant language
Swift
Stars
9.2k
Forks
711
Avg merge
7m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Finb/Bark

All issues in Finb/Bark

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.