created docstring

This commit is contained in:
Yavuz Sava 2024-12-13 10:43:13 +03:00
parent 4f9596e33e
commit 61fb85601c
3 changed files with 70 additions and 2 deletions

53
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,53 @@
{
"files.associations": {
"iomanip": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"compare": "cpp",
"concepts": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"random": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"new": "cpp",
"numbers": "cpp",
"ostream": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"cinttypes": "cpp",
"typeinfo": "cpp"
}
}

View File

@ -1,3 +1,14 @@
/**
* @brief This C++ program is designed to compute the SHA-256 hash of a user-provided string.
* Here's a breakdown of how it works:
* Prompts the user to enter a string.
* Reads the input string from the standard input (using getline).
* Calls the SHA256 function with the user-provided string and prints the resulting SHA-256 hash.
*
* @author Yavuz Sava (woose)
* @date 13/12/2024
*/
#include <iostream>
#include <openssl/sha.h>
#include <openssl/crypto.h>

View File

@ -1,6 +1,10 @@
# Sha256EncryptionInCpp
Sha256 encryption program written in C++
Sha256 encryption program written in C++. This C++ program is designed to compute the SHA-256 hash of a user-provided string.
Here's a breakdown of how it works:
1. Prompts the user to enter a string.
2. Reads the input string from the standard input (using getline).
3. Calls the SHA256 function with the user-provided string and prints the resulting SHA-256 hash.
Usage example:
cd "/VSCodeLibrary/C++/" && g++ Encryption.cpp -o Encryption -lssl -lcrypto && "/VSCodeLibrary/C++/"Encryption