Cov txheej txheem:

Qhov PNG Yog Qhov Chaw Tsis Pub Leej Twg Paub: 4 Kauj Ruam
Qhov PNG Yog Qhov Chaw Tsis Pub Leej Twg Paub: 4 Kauj Ruam

Video: Qhov PNG Yog Qhov Chaw Tsis Pub Leej Twg Paub: 4 Kauj Ruam

Video: Qhov PNG Yog Qhov Chaw Tsis Pub Leej Twg Paub: 4 Kauj Ruam
Video: QHIA QHOV TSEEB - KUB VAJ LOOG TSUA NEW MUSIC VIDEO 2022 2024, Kaum ib hlis
Anonim
Qhov Yog Qhov Chaw Tsis Pub Leej Twg Paub
Qhov Yog Qhov Chaw Tsis Pub Leej Twg Paub
Qhov Yog Qhov Chaw Tsis Pub Leej Twg Paub
Qhov Yog Qhov Chaw Tsis Pub Leej Twg Paub

Koj qhov kev sib tw, tus nyeem ntawv zoo, yog txhawm rau txheeb xyuas cov lus twg tau muab zais hauv cov duab output-p.webp

Ob daim duab ntawm no zoo ib yam tab sis lawv tsis yog Cov no yog greenman-p.webp

Cov lus qhia no tau tshoov siab los ntawm cov yeeb yaj kiab zoo hauv youtube. Tom qab saib cov vis dis aus no lig ib hmos ib hnub thiab tawm tsam kom xav txog qhov kev qhuab qhia txias thiab kev xeem ib nrab rau chav kawm Java qib siab, txoj haujlwm no tau yug los. Cov duab saum toj no, nrog rau cov cai piav qhia hauv cov lus qhia no, yog pub dawb ntawm Github.

Khoom siv

Koj yuav xav tau lub khoos phis tawj thiab koj yuav tsum paub sau thiab khiav Java program. Qhov haujlwm no tsuas yog ob daim ntawv luv luv thiab koj yuav tsum tau khiav nws ntawm kab hais kom ua.

Kauj Ruam 1: Dab tsi yog Steganography

Koj yuav tsum saib cov vis dis aus youtube kuv txuas hauv cov kauj ruam dhau los, tab sis ntawm no yog cov ntsiab lus:

Yog tias koj xav tau zais cov lus zais rau phooj ywg, txoj hauv kev txias kom ua nws yog nrog Steganography. Lub tswv yim ntawm daim duab Steganography yog qhov yooj yim; cov duab hauv computer tau tsim los ntawm pixels, thiab txhua lub pixel yog ua ke ntawm liab, ntsuab, thiab xiav. Hauv ntau lub khoos phis tawj cov duab ua qauv ntau npaum li liab, ntsuab, thiab xiav hauv txhua lub pixel tau hais los ua tus nqi ntawm 0-127. Yog li, piv txwv li, lub pixel liab heev yuav muaj tus nqi liab ntawm 127 thiab ntsuab thiab xiav qhov tseem ceeb ntawm xoom. Qhov ua kom yuam kev yog qhov no: xim liab ntawm 126 yog qhov sib txawv ntawm qhov liab siv ntawm 127 (rau tib neeg qhov muag). Thiab yog li los ntawm kev sib tw nrog ntxiv lossis rho tawm ib qho hauv txhua lub pixel liab peb tuaj yeem zais cov khoom hauv pixels. Yog tias peb pom txoj hauv kev zais kom khaws cov khoom rov qab, peb tuaj yeem khaws cov ntaub ntawv uas peb ntxig rau hauv daim duab!

Muaj tswv yim! Steganography tuaj yeem ua tiav nrog txhua cov xov xwm digital! Koj tuaj yeem ua si nrog cov khoom me me hauv cov nkauj lossis cov vis dis aus piv txwv, tab sis qhov ntawd xav kom koj mus tshawb fawb ntau ntxiv sab nraum qhov uas tau qhia no.

Kauj Ruam 2: Yuav Sau Cov Ntawv Li Cas Hauv Cov Khoos Phis Tawj

Yuav Sau Cov Ntawv Li Cas Hauv Cov Khoos Phis Tawj
Yuav Sau Cov Ntawv Li Cas Hauv Cov Khoos Phis Tawj

Dab tsi hauv qab no yuav xav tau qib kawm hauv CS lossis ntau yam ntawm kev nyiam ua haujlwm kom nkag siab. Cov khoos phis tawj khaws cov ntaub ntawv hauv cov khoom li 1s thiab 0s. Cov 1s thiab 0s no feem ntau yog ua pawg hauv 8 thiab hu ua "bytes". Raws li tau piav qhia ntawm no thiab ntawm no muaj ob peb txoj hauv kev peb tuaj yeem qhia lub khoos phis tawj kom txhais cov bytes ua cov ntawv. Txhawm rau kom tau txais txiaj ntsig zoo tshaj plaws ntawm cov lus qhia steganography/qhia no koj xav tau ntau dua lossis tsawg dua nkag siab ASCII thiab UTF8. Nov yog ob txoj hauv kev los nkag siab cov ntaub ntawv cov lus hauv kab ntawm bytes.

Thaum koj tau txais lub tswv yim txog cov ncauj lus no koj yuav nkag siab qhov no: Hauv ASCII thiab UTF8 lo lus "the" yog sawv cev los ntawm cov hauv qab no bytes (hauv hex) 0x74 0x68 0x65. Hauv binary, cov bytes no yog: 01110100b 01101000b 01101101b

Ntxiv mus, koj yuav nkag siab tias hauv UTF8 lub ntsej muag luag ntxhi Emoji tau sawv cev los ntawm cov hauv qab no bytes (hauv hex) 0xF0 0x9F 0x98 0x80. Hauv binary cov lej no yog 11110000b 10011111b 10011000b 10000000b.

Hauv txhua qhov xwm txheej koj yuav pom hauv qhov txuas txuas uas kuv lub khoos phis tawj ua qee yam nrog cov bytes no. Kuv tau hais qhia lawv hauv qhov program tso tawm nrog cov xub thiab loj "LOOK!".

Kauj Ruam 3: Txoj Haujlwm Ua Haujlwm Li Cas

Ua ke cov program los ntawm github yog qhov yooj yim. Tau txais cov repo pom ntawm nplooj ntawv ntawm no thiab tom qab ntawd

Qhov kev zov me nyuam tau khiav zoo li no los ntawm kab hais kom ua: java Main input-p.webp

hauv qhov piv txwv koj yuav pom tias kuv tau khiav java Main greenman-p.webp

Koj yuav ua tib yam nkaus.

Yog tias koj saib ntawm Main.java koj yuav pom tias qhov no tshwm sim li cas:

  1. Qhov kev zov me nyuam nyeem cov duab rau hauv 2D kab
  2. Qhov kev zov me nyuam hloov cov lus koj muab rau hauv byte array (byte )
  3. Qhov kev zov me nyuam siv chav kawm MessageHider los nkaum cov lus bytes hauv kab duab.
  4. Qhov kev zov me nyuam mam li sau cov duab 2d array tawm rau ib daim ntawv (output.png) nrog cov ntaub ntawv zais hauv. Yog tias koj saib cov duab no nws yog qhov txawv ntawm qhov qub
  5. Qhov kev zov me nyuam mam li nyeem output-p.webp" />

Yog li zoo nkauj npaum li cov cai ua haujlwm raws li peb xav tau.

Kauj Ruam 4: Xaus

Yog li kuv tau muab qee tus lej ua haujlwm rau koj, pov thawj tias nws ua haujlwm zoo li daim duab, thiab qee cov lus qhia kuv tau muab rau kuv cov tub ntxhais kawm hauv tsev kawm qib siab. Kuv kuj tau muab qhov nyuaj rau koj! Kuv tau siv ob peb teev los sau cov cai thiab npaj cov lus piav qhia yog li kuv thov txim cov lus qhia no tsis muaj duab ntau. Yog tias koj xav tias steganography yog qhov txaus siab thov lees txais kuv qhov kev sib tw!

Pom zoo: