Hi , I am decrypting a csv file using pgpy library in databrick(Python). File I am using for test is Kleopatra tool encrypted file.
But the code fails at PGPY method pgpy.PGPMessage.from_file('/dbfs/FileStore/flct/file1_RSA_csv.gpg') And throws error:
NotImplementedError: <class 'pgpy.packet.types.Opaque'>
Does not matter I use RSA or ECDSA in Kleopatra to encrypt the file, error remain same.
So here is the complete flow.
Registered/Generated Key in Kleopatra based on RSA ( Without +RSA) --> Manually uploaded encrypted file in databrick HDFS file folder --> Called method pgpy.PGPMessage.from_file('/dbfs/FileStore/flct/file1_RSA_csv.gpg') to read the file --> Error
Hi , I am decrypting a csv file using pgpy library in databrick(Python). File I am using for test is Kleopatra tool encrypted file.
But the code fails at PGPY method
pgpy.PGPMessage.from_file('/dbfs/FileStore/flct/file1_RSA_csv.gpg')
And throws error:NotImplementedError: <class 'pgpy.packet.types.Opaque'>
Does not matter I use RSA or ECDSA in Kleopatra to encrypt the file, error remain same. So here is the complete flow.
Registered/Generated Key in Kleopatra based on RSA ( Without +RSA) --> Manually uploaded encrypted file in databrick HDFS file folder --> Called method
pgpy.PGPMessage.from_file('/dbfs/FileStore/flct/file1_RSA_csv.gpg')
to read the file --> ErrorAbout Kleopatra:
Download Link: https://www.gpg4win.de/index.html Uses: GnuPG 2.4.0 Libgcrypt 1.10.1
CODE STARTS HERE