background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "Стеганография Python | Скрываем текст в изображении | Шифрование текста в изображении"

input logo icon
Table of contents
|

Table of contents

0:00
Интро
0:15
Что такое стеганография
1:15
Установка необходимых библиотек
1:40
Запись сообщения в png изображение
2:34
Чтение сообщения из png изображения
3:24
Запись сообщения в jpg изображение
4:06
Чтение сообщения из jpg изображения
4:34
Запись текста в изображение с использованием ключа
6:30
Расшифровка текста из изображения с использованием ключа
Video tags
|

Video tags

python
python программирование
python для начинающих
python обучение
python 3
python programming
пайтон
уроки пайтон
pythontoday
python2day
python tutorial
шифрование
шифрование сообщений
стеганография
зашифровываем сообщение
steganography
stegano
безопасность
компьютерная безопасность
криптография
анонимность
уроки python
информационная безопасность
шифрование python
cryptography
стеганография python
программирование
кодинг
text steganography
steganocryptopy
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:07
friends, hello everyone, you are on the channel, let's go
00:00:09
there and today we will talk about
00:00:11
steganography and write our own
00:00:13
program for hiding text in
00:00:14
images. In the age of high technology,
00:00:16
information seems to be of the greatest
00:00:18
value, so it is not surprising that
00:00:20
recently many
00:00:22
tools have been created to protect it.
00:00:23
Steganography is a way of transmitting or
00:00:26
storing information Taking into account that the
00:00:27
very fact of such a transfer of ideas was kept secret,
00:00:30
I was inspired to review the series
00:00:32
Mr. Robot, the main character with enviable
00:00:34
consistency hid data both in
00:00:36
images and in other media files.
00:00:38
If you hide the password in notes
00:00:41
or write it down on a piece of paper, hiding it in a
00:00:43
safe, an attacker can directly
00:00:44
guess where to look for them in the case of
00:00:47
steganography, he has no clues
00:00:49
where to look for hidden, and also
00:00:51
encrypted data,
00:00:52
just as there are actually no hints that
00:00:54
something is hidden somewhere,
00:00:56
because everything is in front of his eyes, it won’t even occur to him
00:00:59
what’s in the folder with your graduation
00:01:01
photos in one of the 300 photos with
00:01:03
your secrets described ok I think we have more or less
00:01:05
figured out the theories, let's write a
00:01:08
simple program that will
00:01:09
record and, as a result, hide the
00:01:11
text in the image; getting acquainted with
00:01:13
steganography, I decided to start with ready-made
00:01:14
libraries; install the
00:01:17
stiga library we need on
00:01:23
[music]
00:01:27
we need to import the LSD module LSD is a
00:01:31
method of steganography in which the
00:01:33
low-order bits of one of the GB colors are changed, the
00:01:35
pixels are full of encoding the text, let's
00:01:38
first work with the png image,
00:01:39
create a secret variable, contact the
00:01:43
LSD module and call its Hide method,
00:01:46
which will take several
00:01:47
parameters, the first is the path to our
00:01:50
image and the second parameter is a
00:01:54
secret message or text that we
00:01:56
want to record and make invisible to
00:01:58
prying eyes,
00:02:00
then we call the safe method in which
00:02:03
we pass the name of the new image as a parameter,
00:02:15
run our code and see what is next to the
00:02:19
source file appeared just created by us
00:02:21
in which a message is written,
00:02:24
open the image and see that they are
00:02:31
completely identical, great, let's
00:02:34
write a very simple code for reading,
00:02:40
turn to the module cola knocked down and call
00:02:42
its method roared in front of it the path to
00:02:45
our image with a twist,
00:02:49
print the result and see our
00:02:54
hidden text is excellent when working with the stiga library
00:02:57
and the lsb module, I encountered an
00:02:59
encoding problem, or rather with the
00:03:01
perception of the Cyrillic alphabet,
00:03:02
this module flatly refused
00:03:04
to work with it, it got to the point that I had already
00:03:06
started writing my own
00:03:07
module, although maybe I’m messing up somewhere if
00:03:10
you You will be able to recognize the Cyrillic alphabet,
00:03:11
be sure to write in the comments I will be
00:03:14
grateful There is no problem when
00:03:16
working with the GPJ format and modules and
00:03:18
xiv header, perhaps it’s worth delving
00:03:21
into its code in more detail and you will be able to solve the problem
00:03:22
with the encoding, but not today I’ll import the
00:03:25
module,
00:03:29
create a variable, access the module
00:03:33
and we call its Hide method, it is similar to the
00:03:38
method of the ls module, with the difference being that as the
00:03:41
second parameter we pass the path to
00:03:43
the image in which the message will be hidden,
00:03:45
and as the third parameter the message itself
00:03:51
[music]
00:03:58
we run the script, ready to
00:04:06
print the message, we
00:04:08
will also use the roar method by passing it to
00:04:17
it path to the image
00:04:20
[music]
00:04:30
run the code, everything works fine,
00:04:33
let's then write a code that,
00:04:35
in addition to writing text into the image, will
00:04:38
also generate a key to decipher the
00:04:40
message without which it becomes very
00:04:41
difficult and maybe impossible,
00:04:43
because among the 300 of your photos from
00:04:45
the entrance you also need to find a photo with your beloved
00:04:47
mathematically, install the libraries will
00:04:49
and stiga on crypto pie
00:04:52
[music]
00:05:01
[music]
00:05:10
[music]
00:05:12
import the module we need,
00:05:17
first of all, let's generate a key
00:05:20
by calling the generics method of the
00:05:22
steganography module in the parameters, pass the path
00:05:24
where we want to save the file with the key,
00:05:26
run our code and see that a
00:05:29
file has appeared in the directory and it
00:05:31
contains a key generated by the module inside,
00:05:32
create an instance of the
00:05:35
steganography class, call the encrypt method and
00:05:40
pass the path to our key as a parameter,
00:05:45
then our image and the path to the file
00:05:52
that will contain the messages
00:06:01
[music]
00:06:09
call the safe method and pass the path to it
00:06:12
to the image in which
00:06:13
the text will be hidden we are ready to run the code and
00:06:21
see that a new file has appeared let's
00:06:30
try to decrypt the message
00:06:33
[music]
00:06:35
we turn to the decrypt method and as the
00:06:39
first parameter we indicate the path to the
00:06:40
key and the second is the path to our image
00:06:50
we will print the result everything works fine
00:06:56
we used very simple
00:06:58
libraries, to be honest, I do
00:07:00
n’t really like their functionality, although in principle it
00:07:01
does the job, the topic is
00:07:03
new to me, as far as I understand, the main
00:07:05
drawback is the visibility of dead pixels in
00:07:07
the image in case of hiding a large
00:07:09
number of characters,
00:07:10
however, this drawback is perfectly
00:07:12
coped with by high
00:07:13
image resolution, for example in a 4 by 4 resolution
00:07:16
thousands of pixels you can write text 3
00:07:19
times more than war and peace I wanted to
00:07:21
try to write my own module for
00:07:23
encrypting and recording information both in an
00:07:24
image and, for example, video audio
00:07:27
or even in ordinary messages, yes this is also
00:07:30
possible, although I am a fan of the terminal, we
00:07:32
can also attach the web or a
00:07:33
graphical software interface if
00:07:36
you are interested in continuing the project,
00:07:37
be sure to like it because for me
00:07:39
this is the best reward all the code will be
00:07:41
available on GitHub and in the telegram channel
00:07:43
you will find links in the description of your friends
00:07:45
thank you very much for watching and
00:07:47
supporting the channel if the video was
00:07:49
useful to you and interesting you want more
00:07:51
projects and practice in python and other
00:07:53
languages subscribe to the channel like it
00:07:55
share your thoughts in the comments
00:07:56
be healthy bye everyone

Description:

В данном видео разберемся, что такое стеганография и научимся скрывать и шифровать текст в изображениях png и jpg формата с использованием библиотек stegano и steganocryptopy. 🔥 Доступ в приват | Поддержать проект: https://boosty.to/pythontoday https://www.patreon.com/pythontoday https://yoomoney.ru/to/410019570956160 🔥 Стать спонсором канала: https://www.youtube.com/channel/UCrWWcscvUWaqdQJLQQGO6BA/join Таймкоды: 00:00 - Интро 00:15 - Что такое стеганография 01:15 - Установка необходимых библиотек 01:40 - Запись сообщения в png изображение 02:34 - Чтение сообщения из png изображения 03:24 - Запись сообщения в jpg изображение 04:06 - Чтение сообщения из jpg изображения 04:34 - Запись текста в изображение с использованием ключа 06:30 - Расшифровка текста из изображения с использованием ключа *****Ссылки***** Код проекта на github: https://github.com/pythontoday/steganography И в telegram канале: https://t.me/python2day *****Соц.сети***** Telegram: https://t.me/python2day

Preparing download options

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "Стеганография Python | Скрываем текст в изображении | Шифрование текста в изображении" video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "Стеганография Python | Скрываем текст в изображении | Шифрование текста в изображении" video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "Стеганография Python | Скрываем текст в изображении | Шифрование текста в изображении" video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "Стеганография Python | Скрываем текст в изображении | Шифрование текста в изображении" video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "Стеганография Python | Скрываем текст в изображении | Шифрование текста в изображении"?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "Стеганография Python | Скрываем текст в изображении | Шифрование текста в изображении"?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.