L
L
loosername2020-05-03 08:38:30
Computer networks
loosername, 2020-05-03 08:38:30

How can traffic be encrypted?

Thanks in advance for your answers.
So, there is an implemented encryption algorithm in C#. It is necessary to use this algorithm to encrypt the traffic going to the server. Tell me how this can be done or where you can see an approximate implementation, or what you should read to deal with the issue.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
#
#, 2020-05-03
@loosername

Please tell me how this can be done
very simple - where you send data*, you encrypt it there. where you receive - there you decipher. how to safely exchange keys if they are session keys - it is already necessary to raise the level of erudition higher, books, articles, practice
upd * data is a string, an array of bytes, or any others. where you send a block of data to the transmission channel - there you encrypt before sending. then you will improve as needed

X
xmoonlight, 2020-05-03
@xmoonlight

1. Read and build your openssl module.

An excerpt from the doki

ENGINE
======
With OpenSSL 0.9.6, a new component was added to support alternative
cryptography implementations, most commonly for interfacing with external
crypto devices (eg. accelerator cards). This component is called ENGINE,
and its presence in OpenSSL 0.9.6 (and subsequent bug-fix releases)
caused a little confusion as 0.9.6** releases were rolled in two
versions, a "standard" and an "engine" version. In development for 0.9.7,
the ENGINE code has been merged into the main branch and will be present
in the standard releases from 0.9.7 forwards.
There are currently built-in ENGINE implementations for the following
crypto devices:
o Microsoft CryptoAPI
o VIA Padlock
o nCipher CHIL
In addition, dynamic binding to external ENGINE implementations is now
provided by a special ENGINE called "dynamic". See the "DYNAMIC ENGINE"
section below for details.

2. You can immediately fix SSL-Tunnel .
According to the first and second methods, it will be possible to create encryption in the following form:
68747470733a2f2f692e696d6775722e636f6d2f
Where can I use lib?
Link options right away:
1. https://www.opennet.ru/base/net/openvpn_x509.txt.html
2. https://httpd.apache.org/docs/2.4/ssl/
3. https://kb .justhost.ru/article/1952

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question