drogonframework / drogonframework/drogon

Erasing the response body with zeros

Open
#2,435 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 13h
Merged PRs (30d)
14

Description

Hello!

I receive a secret key from a remote server (keystore). The secret key is stored in the depths of an HttpResponse class object. HttpResponse provides access to the secret key as a string in the form of std::string_view.

For security reasons, how can I erase with the symbol 0 the memory that contains the key in the HttpResponse object before destroying the HttpResponse object?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.