Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello all.
I have a little problem. We have a server that we call dropbox were we drop or pick up customer files. We have a policy that all files have to be encrypted, but we have found that some customers are not do that. Is there some command that can check to see if a file is encrypted. I have been searching and could not find anything. Any help would be great.
Thanks

If the files are ASCII armored, 'file' should recognize them and attempted decryption of an unencrypted file should result in an informative error message.

Most of the files are encrypted with PGP, I'm still reading and searching for some way just to check if they are encrypted with no luck. :-(

I don't use PGP myself but if I try to decrypt an unencrypted file with gpg it says:
gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: eofIf you can get your users to make sure their files are ASCII armored when they do remember to encrypt them, 'file xxx' says:
xxx: PGP armored data message
for raw encrypted data it just says:
xxx: data
and if you know the filetype it would be if it was unencrypted, you can easily distinguish which are which.
If it is the case that your users are sending you random binary files unrecognizable to 'file' then I would've thought PGP could tell when it's not looking at an encrypted file - like gpg can - and if not then you can use gpg.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |