A
A
Anton_repr2019-03-28 11:58:59
C++ / C#
Anton_repr, 2019-03-28 11:58:59

How to convert word to binary code?

I am engaged in the creation of an encoder, there were problems.
You need to do the following: read the contents of the file, convert everything to binary code, and then encrypt it. I wanted to convert everything to ASCII first and then to binary. But how to do that? Is it necessary to parse a site with ASCII?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ronald McDonald, 2019-03-28
@Anton_repr

I wanted to convert everything to ASCII first

What for? What is the original encoding? It can go astray if converted to ASCII. We translate all characters into a binary number and forward.

A
Alexander, 2019-03-28
@alexr64

https://docs.microsoft.com/ru-ru/dotnet/api/system...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question