Yuav ua li cas tiv thaiv cov ntaub ntawv nrog GPG hauv txoj hauv kev yooj yim

Txuas ntxiv kev txhim kho kev nyab xeeb ntawm kuv cov ntaub ntawv (Ver ncej kom nkag siab zoo) Tam sim no kuv siv GPG los cim cov ntaub ntawv ntawm FlatPressCov. Lub tswv yim tshwm sim ua tsaug rau siv 84 twb tau hackan, leej twg hais tias es tsis txhob ua cov ntaub ntawv hauv .RAR nrog ib tus lej zais, kuv tsuas muab nias rau hauv .TAR.GZ thiab tom qab ntawd muab cov ntawv tiv thaiv qhov nrawm tiv thaiv nws nrog GPG.

Linux muaj ntau yam zoo uas kuv nyiam, ib qho yog HUGE cov ntaub ntawv uas cov ntawv thov muaj, yog li yooj yim txiv neej gpg hauv lub davhlau ya nyob twg, npaj txhij ... nws muab kuv rov qab txhua pab kom kawm ua haujlwm nrog qhov no 😉

Ntawm no kuv yuav qhia koj li cas koj tuaj yeem tiv thaiv ntaub ntawv nrog GPG yam tsis muaj teeb meem ntau, siv tus password (passphrase lossis lo lus-password) ... thiab qhov tseeb, tom qab ntawd lawv tuaj yeem nkag mus tau nws li cas 🙂

Piv txwv tias peb muaj cov ntawv: my-keys.txt

Txhawm rau tiv thaiv cov ntaub ntawv no siv GPG hauv lub davhlau ya nyob twg tsuas yog tso:

gpg --passphrase desdelinux -c mis-claves.txt

Qhov no txhais li cas?

  • --passphrase desdelinux- » Nrog rau qhov no peb qhia tias peb yuav encrypt / tiv thaiv cov ntaub ntawv nrog tus password: los ntawm linux
  • -c mis-claves.txt- » Nrog rau qhov no peb qhia tias nws yog cov ntawv my-keys.txt ib qho peb xav tiv thaiv.

Qhov no yuav tsim cov ntaub ntawv hu ua my-keys.txt.gpg uas yog qhov encryption, ib qho yog tiv thaiv nrog GPG.

Qhov no muaj qhov nthuav dav uas tsawg kawg kuv tsis nyiam, vim tias thaum tsim cov ntaub ntawv my-keys.txt.gpg koj tuaj yeem pom nrog qhov muag liab qab (tsuas yog saib ntawm cov ntaub ntawv lub npe) tias nws yeej yog .txt ntaub ntawv, txawm hais tias lawv yuav TSIS tsis tuaj yeem pom nws cov ntsiab lus, kuv tus kheej tsis nyiam tias lawv paub hom ntawv twg nws yeej yog. Txhawm rau zam qhov no, peb tuaj yeem ntxiv qhov tshwj xeeb -o … Uas yog siv los qhia lub npe ntawm cov ntawv kawg. Uas yog:

gpg --passphrase desdelinux -o mio.gpg -c mis-claves.txt

Qhov no yuav tsim ib daim ntawv hu ua mio.gpg… thiab tsis muaj leej twg yuav paub dab tsi txuas ntxiv cov ntaub ntawv tiag yog is

Nws yog qhov tseem ceeb heev uas tsis hais tus lej uas koj siv, nco ntsoov tso lub npe ntawm cov ntawv koj xav kom tiv thaiv mus txog thaum kawg, uas yog ... thaum kawg ntawm txoj kab nws yuav tsum nco ntsoov: -c my-keys.txt

Thiab qhov ntawd yog qhov yooj yim npaum li cas tiv thaiv cov ntaub ntawv siv GPG thiab lo lus zais (passphrase), tab sis ... yuav ua li cas decrypt ib cov ntaub ntawv?

Txhawm rau pom cov ntsiab lus ntawm cov ntawv tiv thaiv nrog GPG kuj yooj yim 😉…

gpg --passphrase desdelinux -d mis-claves.txt.gpg

Raws li koj tuaj yeem pom, qhov tsuas yog qhov hloov pauv yog tam sim no thaum kawg peb muab tso -d (-d rau decrypt) es tsis txhob -c (-c kom nkag siab) uas peb siv ua ntej 🙂

Thiab yog txhua yam. Ntawd yog qhov yooj yim npaum li cas nws yog los tiv thaiv cov ntaub ntawv nrog GPG yam tsis muaj kev cuam tshuam los tsim cov yuam sij, nyob deb ntawm nws ...

Yog tias koj xav tau, zoo li kuv kis, los tiv thaiv ib daim nplaub tshev uas muaj ntau cov ntaub ntawv thiab subfolders, qhov kuv tau ua yog tau ceev daim nplaub tshev thiab nws cov ntsiab lus hauv .TAR.GZ, thiab tom qab ntawd cov ntaub ntawv ntawd (.tar.gz) yog qhov uas kuv tiv thaiv nrog GPG Cov.

Zoo ... tsis muaj dab tsi ntxiv rau ntxiv, tsuas yog qhia meej tias Kuv tsis nyob deb ntawm tus kws tshaj lij hauv qhov no, yog li yog leej twg paub ntau ntxiv txog nws, Kuv yuav txaus siab yog tias koj qhia koj cov kev paub nrog peb txhua tus 😀


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

17 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm.

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   oroxo ua said

    Kuv xav ua qhov kev soj ntsuam, Kuv yog tus neeg siv gentoo thiab pob "app-crypt / gnupg" tsis muaj nws ntsia, Kuv ua qhov kev soj ntsuam vim kuv xav txog tias koov thiab lwm yam cuam tshuam ntawm hom "ua koj tus kheej" yuav yuav tsum tau nruab lub pob kom tuaj yeem nkag nrog gpg

    1.    KZKG ^ Gaara said

      Huag lag luam, meej meej meej
      Tsaug rau saib 🙂

  2.   Miguelinux said

    Nyob zoo! Kuv muaj lus nug, puas muaj ib txoj hauv kev uas thaum decrypting cov ntaub ntawv nws rov qab lub npe thawj lossis tsawg kawg qhov txuas ntxiv?
    Txais tos thiab ua tsaug ntau ntau 🙂

    1.    KZKG ^ Gaara said

      Nyob zoo, koj nyob li cas?
      Kuv tsis yog tus kws tshaj lij hauv qhov kev kawm, Kuv tsuas yog nyeem kev pab thiab nrhiav qee yam lus qhia txog nws haha, tab sis ... Kuv tsis paub tseeb. Kuv tsis tau nyeem txog cov kev xaiv uas yuav tso cai rau decryption kom paub txog cov hom ntaub ntawv thiab muab qhov txuas ntxiv thaum kawg, yog vim li cas kuv siv cov kev xaiv -o rau cov zis.

      Txawm hais tias, yog tias muaj nuj nqis file.txt yuav dhau los file.txt.gpg, thiab thaum deciphering nws nws yuav yog file.txt

      1.    hackan said

        uas yog raws nraim li cov cwj pwm yog hais txog. Yog hais tias lub npe hloov tom qab encryption, cov ntaub ntawv txuas ntxiv yuav tsis paub thaum decrypting (hauv txoj cai, vim tias cov ntawv txiav tawm yuav tuaj yeem txheeb xyuas tau thiab yog li nws txuas ntxiv)

        Txais tos!

        1.    KZKG ^ Gaara said

          Tseeb 😀… qhov tseeb, tus phooj ywg qhia kuv ib qho piv txwv ntawm openssl… koj puas paub qhov lus txib no? ... tsis zoo hehehe.

  3.   Felix said

    Tsuas yog ntxiv cov kev xaiv -o file.txt dua
    Qhov teeb meem yog tias nws cia li tsis (uas kuv paub).
    Lwm qhov kev xaiv yog tias koj ib txwm hlob nws mus rau hauv cov ntaub ntawv thiab tom qab ntawd ua gpg nrog lub npe koj xav tau thiab yog li koj paub tias cov ntawv ntawd yuav ib txwm yog compressed. Kuv tsis paub, yog tim txoj hmoo.

  4.   Giskard said

    Ib lo lus nug, vim tias khub ntawm tus yuam sij tsis siv tab sis ib lo lus tseem ceeb (lo lus zais), nws puas yuav yooj yim los tsim RAR nrog tus password thiab yog qhov ntawd?

    1.    KZKG ^ Gaara said

      Nyob rau hauv tsab ntawv (Txuas!) uas kuv tau tshaj tawm ntawm no ob peb hnub dhau los qhov kuv tau ua yog tias, nias rau hauv .RAR nrog lo lus zais, tab sis ... vim tias GPG muaj ntau qhov ntau thiab muaj kev ntseeg siab, yog vim li cas kuv txiav txim siab siv nws hloov .RAR 🙂

  5.   Pirate, pirate said

    Tam sim no, hom zoo no xa cov ntawv nkag mus rau lwm tus neeg tab sis nco ntsoov tias ua ntej muab zais ib cov ntaub ntawv pom tias tau muab zais rau ib qho twg thiab txawm tias peb rho tawm nws, nws tsuas yog siv tau cov ntaub ntawv rov qab them nqi kom tau tuav nws. Cov.

    Kuv pom zoo kom siv cov partitions encrypted nrog LUKS + LVM, nws yog qhov muaj kev nyab xeeb tshaj plaws uas kuv tau pom: txawm tias koj paub tus password lossis koj tsis nkag mus thiab nws tsis cuam tshuam rau kev ua haujlwm ntawm lub khoos phis tawm.

    Ntawm qhov tod tes, thaum muab cov ntaub ntawv rhiab Kuv feem ntau siv lo lus "srm". Txawm hais tias nws qeeb, nws ua haujlwm zoo heev.

    1.    KZKG ^ Gaara said

      Yog, Kuv tau xav txog qhov ua tau tias cov ntaub ntawv yuav rov qab tau zoo ib zaug tshem tawm ... mmm Kuv tsis paub SRM, Kuv mam li saib xyuas nws kom pom li cas

      Qhov teeb meem ntawm kev siv LVM thiab xws li ... damn, rau tus kheej lub hom phiaj ntawm qhov no, uas yog, rau qhov uas kuv tabtom tsim kuv tus kheej "kev ruaj ntseg system", muaj kuv xav tias nws yuav ua rau dhau qhov dhau lawm ntau LOL !!.

      Ua tsaug rau koj cov lus, kuv yeej ua 😉
      regards

      1.    hackan said

        Yog tias koj txaus siab nyob rau hauv cov ncauj lus, Kuv nkag siab hais tias Ubuntu 12.10 muaj kev xaiv kom nws yooj yim thaum txhim kho. Nrog cov laus tshaj qub, nws yog ua tiav siv lwm txoj hauv kev.
        Tab sis yog tias koj xav ua nws 'los ntawm txhais tes', nres los ntawm kuv lub vev xaib uas kuv tau sau ib qho kev qhia txog nws dhau los ...

        Ua tsaug!

        1.    KZKG ^ Gaara said

          Kuv tsis nkag siab cov lus hais no LOL!
          Ua dab tsi yooj yim thaum txhim kho?

  6.   templix said

    Koj zoo siv:

    $ gpg -o my.gpg -c my-keys.txt

    Txoj kev no koj yuav tsis tawm tus password hauv keeb kwm:

    $ keeb kwm

    Los yog tsawg kawg tshem tawm cov lus txib los ntawm keeb kwm:

    $ keeb kwm -d tus naj npawb

    1.    Ncig tebchaws said

      Ntawv yog qhov tseeb, nthuav dav me me kom nco ntsoov.

  7.   Liab said

    Yog tias muaj ib txoj hauv kev kom rov zoo los ntawm kev nias rau lawv thiab rov rau cov kav xa dej mus rau gpg. Peb saib ib tsab ntawv.

    tar –create "$ @" | gzip | gpg –default-recipient-self –no-tty –symmetric –encrypt –bzip2-compress-qib 3 –passphrase «` zenity –entry –hide-text –text «Ntaus tus lej qhib password» `»> «` basename% f | sed 's / \. [[: alpha:]] * $ //' `.gpg»

    rau decipher nws
    gpg –no-tty –decrypt –passphrase «` zenity –entry texthide-text –text «Hom qhib lo lus zais» `» –output «` basename% f .gpg`.tar.gz »« $ @ »

  8.   Viv Tsaus said

    Zoo.

    Nrhiav cov ntaub ntawv hais txog GPG, Kuv tau pom qhov nkag no uas tau zoo meej rau kuv, tab sis kuv muaj lus nug, saib seb koj puas tuaj yeem muab kuv rau cable.

    Cov lus nug yog tias yog kuv xav siv gpg Kuv yuav tsum tau tsim cov pej xeem thiab tus kheej cov yuam sij, txoj cai?
    Ib yam li ntawd, Kuv tabtom siv cov bash uas tua los ntawm ib tus lej nrog lwm tus neeg siv thiab kuv xav coj kom zoo dua cov yuam sij uas tsim nrog kuv cov neeg siv los ntawm tus cron no. Kuv tau sim cov hauv qab no "gpg –local-user myUser" tab sis nws tsis ua haujlwm rau kuv.

    Kuv yog qhov kuv xav ua, nws tuaj yeem ua tau, lossis kuv tab tom nrhiav lwm yam.

    Tsaug

bool (muaj tseeb)