Add RAII secure string container to wipe decrypted string memory on scope exit

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
security

Research direction

Start by reading AES8.hpp to see how decrypted strings are returned and how its temporary buffers are wiped. Define the wrapper’s scoped read access and zeroing behavior for both std::string and std::wstring; the issue does not name a test file or specify how the wrapper should be exposed. Done means decrypted string buffers are cleared when the wrapper leaves scope.

Written by the indexing model from the issue text.

Description

enhancement help wanted

AES8.hpp wipes its temporary stack buffer, runtime key, key schedule, and S-box state immediately after decrypting a literal, but returns a standard std::string or std::wstring whose buffer remains in memory until the caller destroys or overwrites it. Add an optional RAII secure string wrapper that zeroes its internal buffer in the destructor and supports scoped read access.

Dominant language
C++
Stars
845
Forks
87
Avg merge
17h 4m
Merged PRs (30d)
1

Getting set up

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 x86byte/Obfusk8

All issues in x86byte/Obfusk8

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.