P
P
prostiti2021-09-13 23:59:01
C++ / C#
prostiti, 2021-09-13 23:59:01

How to encrypt in C++ using MD5?

I want to encrypt data using MD5 in C++, but when I searched I couldn't find what I wanted.

I found how they do it in C # or C (C), but not in C ++, although I know that they can be combined with each other, but I would like to do it in C ++.

I want to write a C++ program to get a hash from a string/password using MD5, but I don't know any suitable guides for this, although I've been looking for a long time...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
SagePtr, 2021-09-14
@SagePtr

MD5 is not an encryption algorithm and cannot be used to encrypt.
And about hashing in C ++ - what prevents you from google ready-made solutions?
https://www.google.com/search?q=MD5+C%2B%2B

D
Developer, 2021-09-14
@samodum

MD5 is hashing, not encryption

E
Evgeny Petryaev, 2021-09-14
@Gremlin92

3here are two files md5.cpp,md5.h https://github.com/Beginerok/Tropic-Island/tree/ma...

#include "MD5.h"
std::string query;
md5(pass);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question