Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Encrypting Files

Hi,
I need to be able to encrypt files.
Is there a tFileEncrypt component I can download?
Is it possible to do with tSystem? If yes, how?
Let me know
Thanks.
Boris
Labels (2)
30 Replies
Anonymous
Not applicable
Author

Hello
I have uploaded a component tGPGEncrypt on 4557.
Best regards
Shong
Anonymous
Not applicable
Author

Hi,
I downloaded the following component: tFilePGPEncrypt.
Specified the following:
source plaintext file: test.txt (just a test notepad file)
destination encrypted file: test_encrypt
Public Key: specified id_rsa.pub file.
I am getting the error below:
java.io.IOException: unknown object in stream: 51
at org.bouncycastle.openpgp.PGPObjectFactory.nextObject(Unknown Source)
at org.bouncycastle.openpgp.PGPPublicKeyRingCollection.<init>(Unknown Source)
at org.talend.pgp.PGPEncrypt.readPublicKeyFromCol(PGPEncrypt.java:84)
at org.talend.pgp.PGPEncrypt.encryptFile(PGPEncrypt.java:51)
at ebs.concur_ftp_0_1.Concur_ftp.tFileEncryptPGP_1Process(Concur_ftp.java:200)
at ebs.concur_ftp_0_1.Concur_ftp.runJobInTOS(Concur_ftp.java:376)
at ebs.concur_ftp_0_1.Concur_ftp.main(Concur_ftp.java:270)
Anonymous
Not applicable
Author

Hello
Where do you download tFilePGPEncrypt?Exchange?
Please try tGPGEncrypt component.
Best regards
Shong
Anonymous
Not applicable
Author

Yes, from Exchange. Josh Holman, from Talend, actually told me to use tFileEncryptPGP component.
Anonymous
Not applicable
Author

tFileEncryptPGP is a pure Java implementation, the tGPGEncrypt requires a gpg/pgp binary. The problem is BouncyCastle does not recognize your key. id_rsa.pub is a SSH key. SSH keys are base64 encoded to be human readable. Try using GPG or PGP to generate your key.
EDIT:
Also, make sure you install the JCE Unlimited Strength Jurisdiction Policy Files.
Anonymous
Not applicable
Author

Hi,
I installed JCE Unlimited Strength Jurisdiction Policy Files, and also created a new key, which I am able to use to encrypt files manually. However, when I do it with tFileEncryptPGP component, and specify source file, destination file and key, it still produces the same error.
Please let me know,
Thanks
Boris
Anonymous
Not applicable
Author

The security files need to be installed into the Java version you are using.
The error:
java.security.InvalidKeyException: Illegal key size or default parameters
Is coming from your java.security which is in your core JVM, the jvm security policies are most likely not installed correctly. Make sure they policies are in /lib/security of the correct JVM
Anonymous
Not applicable
Author

I got this component to work. thanks.
Is tPGPEncrypt only usable on a windows box?
I need to be able to encrypt a file sitting on a UNIX box. There is no tFileGPGEncrypt component,right? How can I do that?
Anonymous
Not applicable
Author

Does this component only work if the gpg key created is RSA???
When I create a DSA type key, I get an error below when I try to encrypt a file. When I create an RSA key, then everything works fine.
Please let me know,
Thanks,
Boris
java.lang.NullPointerException
at org.talend.pgp.PGPEncrypt.encryptFile(PGPEncrypt.java:55)
at ebs.concur_ftp_0_1.Concur_ftp.tFileInputDelimited_1Process(Concur_ftp.java:248)
at ebs.concur_ftp_0_1.Concur_ftp.runJobInTOS(Concur_ftp.java:447)
at ebs.concur_ftp_0_1.Concur_ftp.main(Concur_ftp.java:341)
java.lang.NullPointerException
at org.talend.pgp.PGPEncrypt.encryptFile(PGPEncrypt.java:55)
at ebs.concur_ftp_0_1.Concur_ftp.tFileInputDelimited_1Process(Concur_ftp.java:248)
at ebs.concur_ftp_0_1.Concur_ftp.runJobInTOS(Concur_ftp.java:447)
at ebs.concur_ftp_0_1.Concur_ftp.main(Concur_ftp.java:341)
java.lang.NullPointerException
at org.talend.pgp.PGPEncrypt.encryptFile(PGPEncrypt.java:55)
at ebs.concur_ftp_0_1.Concur_ftp.tFileInputDelimited_1Process(Concur_ftp.java:248)
at ebs.concur_ftp_0_1.Concur_ftp.runJobInTOS(Concur_ftp.java:447)
at ebs.concur_ftp_0_1.Concur_ftp.main(Concur_ftp.java:341)
java.lang.NullPointerException
at org.talend.pgp.PGPEncrypt.encryptFile(PGPEncrypt.java:55)
at ebs.concur_ftp_0_1.Concur_ftp.tFileInputDelimited_1Process(Concur_ftp.java:248)
at ebs.concur_ftp_0_1.Concur_ftp.runJobInTOS(Concur_ftp.java:447)
at ebs.concur_ftp_0_1.Concur_ftp.main(Concur_ftp.java:341)
disconnected
java.lang.NullPointerException
at org.talend.pgp.PGPEncrypt.encryptFile(PGPEncrypt.java:55)
at ebs.concur_ftp_0_1.Concur_ftp.tFileInputDelimited_1Process(Concur_ftp.java:248)
at ebs.concur_ftp_0_1.Concur_ftp.runJobInTOS(Concur_ftp.java:447)
at ebs.concur_ftp_0_1.Concur_ftp.main(Concur_ftp.java:341)
java.lang.NullPointerException
at org.talend.pgp.PGPEncrypt.encryptFile(PGPEncrypt.java:55)
at ebs.concur_ftp_0_1.Concur_ftp.tFileInputDelimited_1Process(Concur_ftp.java:248)
at ebs.concur_ftp_0_1.Concur_ftp.runJobInTOS(Concur_ftp.java:447)
at ebs.concur_ftp_0_1.Concur_ftp.main(Concur_ftp.java:341)