PGP encryption needs user input in script

Posted on 2009-02-18
Last Modified: 2013-11-10
Hi all,
I have a bat file used to download 3 files, copy to new names and ftp them. A new requirement is they be encrypted. The problem is:
PGP needs to generate some random data. This is done by measuring
the time intervals between your keystrokes. Please enter some
random text on your keyboard until the indicator reaches 100%.

Does anyone know how this might be done without user intervention?
Until now this was just scheduled to run, which it did just fine and no one had to do anything.
I have tried BATCHMODE & FORCE with no luck
copy C:\FTP\Republic\Data\4CIS_SIC.DAT C:\FTP\Republic\Data\4CIS_SIC_%dte%.dat

pgp  -ae C:\FTP\Republic\Data\4CIS_SIC_%dte%.dat Republic IT

Open in new window

Question by:Chuckyou
    LVL 33

    Accepted Solution

    try using gpg instead? that doesn't try to force you into generating randomness....
    LVL 51

    Expert Comment

    not sure if this works on M$ systems:

    echo asdfghjklqwertuiopxcvbnm |pgp -ae .....

    Author Closing Comment

    This solution works, I guess there is not one for PgP. I was able to encrypt using gpg and then unencrypt using pgp which is all that really matters. Thanx for the suggestion.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    Explore the encryption capabilities built into Google Apps and how these features can help you meet privacy policy and regulatory compliance, but are not a full solution. Understand and compare the most popular email encryption services for Google A…
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now