Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In C# We Have This Below : 

private string Base64Encode(string plainText)
{
     var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(plainText);
     return System.Convert.ToBase64String(plainTextBytes);
}

How I Will Do It In VC++ 6.0 


What I have tried:

I Tried Some Way Manually But No Thing Is True

so Can Any Body Help Me
Posted
Updated 10-Nov-21 21:59pm

1 solution

Base64 isn't encryption: it is translation, and is so easy to reverse that it's doesn't count as encryption in any shape, form, or manner.

If you want to convert text to Base64 it's pretty trivial as a simple google will show: Base64 C++ - Google Search[^]
It you want to encrypt it, you need to be a lot more sophisticated and look at C++ encryption services: C++ encryption services - Google Search[^]
 
Share this answer
 
Comments
a_alise 11-Nov-21 4:14am    
I tried All You Send In Base64 C++ - Google Search[^] But There No Resault , I Need Full Code ,Thank You
OriginalGriff 11-Nov-21 4:30am    
Hmmm. If you think we are stupid, why are you asking us for help? Surely it would make a lot, lot more sense to ask people who you believe are cleverer than you as you would get a better solution than you could have produced.

So why lie to us? Following that link gives three million results, about 90% of which include code to do exactly what you are asking for.
I really don't like being lied to ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900