We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

PGP encryption needs user input in script

Medium Priority
745 Views
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

Comment
Watch Question

Software and Hardware Engineer
Commented:
try using gpg instead? that doesn't try to force you into generating randomness....

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
not sure if this works on M$ systems:

echo asdfghjklqwertuiopxcvbnm |pgp -ae .....

Author

Commented:
DaveHowe;
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.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.