Close Menu
Computing.net
    Facebook X (Twitter) Instagram
    Computing.netComputing.net
    • News
      1. AI
      2. Crypto
      3. Gaming
      4. Hardware
      5. Security
      6. Software
      7. View All

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      AI Trading Bot Loses $441K in Crypto After Decimal Point Mistake

      February 23, 2026

      Tesla (TSLA) Stock: Goodbye Sedans, Hello Robots in Dramatic Production Shift

      January 29, 2026

      Palantir Technologies (PLTR) Stock: Why Bears May Be Wrong About Valuation Concerns

      January 29, 2026

      SUI Token Rallies 40% Following Major Staking Event and CME Futures Announcement

      May 12, 2026

      Chainlink (LINK) Surges to $10.40 as Network Activity Hits Eight-Month Peak

      May 12, 2026

      Dogecoin Whales Ramp Up Accumulation as DOGE Eyes Critical Breakout Levels

      May 12, 2026

      Bitcoin Holds $81K While Burry Flags Nasdaq Bubble and Oil Surges Past $105

      May 12, 2026

      Hamster Kombat: Unraveling TON’s Gaming Phenomenon

      August 7, 2024

      W-Coin: Exploring the Latest Telegram Tap-to-Earn Phenomenon

      August 7, 2024

      Hamster Kombat: 300 Million Players & Counting, HMSTR Token Airdrop Soon!

      July 31, 2024

      Hamster Kombat Developers Work with TON Team on Airdrop Solution

      July 30, 2024

      Nothing Expands Product Line with New AI Feature & Phone Update

      July 31, 2024

      Security Audit Reveals Concerns in Atari’s Blockchain Game on Base

      August 6, 2024

      SideWinder Group Targets Maritime Facilities in New Cyber Espionage Campaign

      July 30, 2024

      OAuth Implementation Flaw Exposes Millions of Websites to XSS Attacks

      July 30, 2024

      Hamster Kombat Players Face Growing Cybersecurity Threats

      July 25, 2024

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      Cookie Crumble: Google Halts Plans to Eliminate Third-Party Cookies in Chrome

      July 23, 2024

      Big Brother is Watching: Apple’s Creepy New Ad Urges iPhone Users to Ditch Chrome

      July 23, 2024

      Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

      May 12, 2026

      Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

      May 12, 2026

      GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

      May 12, 2026

      SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

      May 12, 2026
    • How To

      Batch Files: Tokens and Delimiters (FOR Loops)

      July 31, 2024

      Types of Ethernet Cabling & Electrical Low Voltage Wiring

      July 9, 2024

      What You Should Know About .JSON File Extension

      January 10, 2023

      Bkup File Extension

      November 19, 2022

      HEIC File Extension

      November 19, 2022
    • Office
      1. Excel
      2. Google Sheets
      3. View All

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024

      How to Remove Characters from Right in Excel

      July 30, 2023

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      Bullet Points in Google Sheets

      January 20, 2022

      Sort by Date in Google Sheets

      January 18, 2022

      Google Sheets Timestamp

      January 17, 2022

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024
    • Answers
    • About
    • Contact
    Facebook X (Twitter)
    Computing.net
    How To

    Passwords Secured Using PKzip

    Computing StaffBy Computing StaffOctober 6, 2021
    Twitter LinkedIn Email Telegram
    Passwords Secured Using PKzip
    Twitter LinkedIn Email Telegram

    Here’s a batchfile I just wrote. I tested most of the features and it seemed to work, but it’s a “beta” prototype! you may need to tinker with it, and you will need PKZIP and PKUNZIP utilities: http://pkzip.soft32.com/free-download/ (My version is OLD, so newer version you may need to tweak, especially “getname” subroutine).

    ::======= PASS.BAT
    @echo off & setlocal
    :: set your zipped-filename here. It has no relation to your primary text
    :: file name! I’m just using the batchfile name for the zipfile.
    :: pkzip may be found at: http://pkzip.soft32.com/free-download/
    :: among others
    set zipfile=%~n0
    set pass=%1
    if not defined pass (
    echo usage: %~n0 password [search-string]
    echo If no search-string is given, the original textfile will be
    echo restored to allow editing. If search-string is %~n0, and the
    echo file exists, it will be re-zipped using the given password.
    goto :eof
    )

    call :getname
    echo.
    echo primary (text) filename: “%primary%”, zipfilename: “%zipfile%”
    if /i “%~n2” equ “%~n0” goto :rezip

    set s=%*
    for /f “tokens=1*” %%a in (“%s%”) do set string=%%b
    if not defined string (
    if exist %primary% (
    echo %primary% is about to be overwritten!
    set z=
    set /p z=any key aborts
    if defined z goto :eof
    echo.
    echo.
    )
    pkunzip -o -s%pass% %zipfile%>nul&&echo %primary% Unzip success||(
    echo %primary% Unzip failed
    goto :eof
    )
    echo CAUTION! primary text file “%primary%” has been restored UNPROTECTED
    ) else (
    echo.
    echo.
    echo searching for “%string%” in %zipfile%
    :: first verify the zipfile and password are valid
    pkunzip -s%pass% -c %zipfile%>nul||(echo zipfile or pass bad&goto :eof)
    :: now do the search
    echo ——————————————————————
    pkunzip -s%pass% -c %zipfile%| find /i “%string%”||echo “%string%” not found in %zipfile%
    )
    goto :Eof

    :rezip
    set ok=
    if not defined primary (
    echo no primary file yet established
    set ok=y
    set primary=
    set /p primary=filename to be secured with pass %pass%:
    if not defined primary goto :eof
    )

    if not exist %primary% echo no file %primary%&goto :eof
    if not defined ok (
    echo.
    echo ===============================
    echo preparing to re-zip your primary file. The primary file will be
    echo removed and the previous zip contents overwritten with %primary%!
    set /p ok=ok to proceed? y or Y for yes:
    echo.
    echo.
    )
    if /i “%ok:~0,1%” equ “y” (
    pkzip -s%pass% -m %zipfile% %primary%>nul&&echo Rezip success||echo Rezip failed!
    ) else (
    echo “%primary%” not re-zipped
    )
    goto :eof

    :getname
    for /f “tokens=9” %%a in (‘pkunzip -v %zipfile%^| find /i “deflat”‘) do set primary=%%a
    goto :eof
    ::========= end batch

    The textfile can be any format, but it’s best to put the password on the same line with the string that you can use to recognize it. f/e:

    programmiing forum http:/www.computing.net compute_THIS username NBRANE
    sarah’s (ex-girlfriends) new phone# 222-3333 ssn: 888-99-1111 d.o.b: 1/1/90
    visa card: 0000-9999-8888-7777 exp 3/18 security code 111
    mastercard 1234-5678-8765-4321
    vin# of the mercedes 8888888888888888 plate# 2L8-2H8
    dairyland insurance policy# 0000 agent: jake drake

    so in the above

    PASS mypwd CARD
    will give you any lines that have “card” in the line (upper or lower case no matter)

    PASS mypwd

    unzips the file for editing

    PASS mypwd pass

    rezips (and removes the primary text) file after editing.

    Share. Twitter LinkedIn Email Telegram
    Avatar photo
    Computing Staff
    • Website

    Related Posts

    Batch Files: Tokens and Delimiters (FOR Loops)

    July 31, 2024

    Types of Ethernet Cabling & Electrical Low Voltage Wiring

    July 9, 2024

    What You Should Know About .JSON File Extension

    January 10, 2023

    Bkup File Extension

    November 19, 2022

    HEIC File Extension

    November 19, 2022

    Working with Batch variables and For loops

    October 6, 2021
    Add A Comment

    Comments are closed.

    Latest

    Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

    May 12, 2026

    Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

    May 12, 2026

    GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

    May 12, 2026

    SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

    May 12, 2026

    Trump Dismisses Iran Peace Proposal — Oil Markets React as Hormuz Remains Restricted

    May 12, 2026
    • Facebook
    • Twitter

    Latest Reviews

    Meta Platforms Shares Tumble 8% Despite Strong Q1 Performance Amid AI Investment Surge

    April 30, 2026

    Flush.com Review: Casino & Sportsbook With 275% Welcome Bonus

    March 7, 2026

    Katsubet Review: Crypto Casino With 300% Welcome Bonus & Free Spins

    March 7, 2026

    7Bit Review: Crypto Casino With 325% Bonus & 250 FS

    March 7, 2026

    Mega Dice Review: Crypto Casino With 200% Bonus & 50 Free Spins, Legit?

    March 7, 2026


    Home / Privacy Policy / Terms & Conditions

    Computing.net © 1996 - 2026 Kooc Media Ltd. All rights reserved. Registered Company No.05695741

    Type above and press Enter to search. Press Esc to cancel.