created docstring
This commit is contained in:
parent
4f9596e33e
commit
61fb85601c
53
.vscode/settings.json
vendored
Normal file
53
.vscode/settings.json
vendored
Normal 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"
|
||||
}
|
||||
}
|
@ -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>
|
||||
|
@ -1,7 +1,11 @@
|
||||
# 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:
|
||||
Usage example:
|
||||
cd "/VSCodeLibrary/C++/" && g++ Encryption.cpp -o Encryption -lssl -lcrypto && "/VSCodeLibrary/C++/"Encryption
|
||||
Enter a string to encrypt:
|
Loading…
Reference in New Issue
Block a user