Can someone help me with this problem: I am encrypting a JSON in NiFi with AES_GCM algorithm and using a KDF PBKDF2. The idea is to decrypt this JSON with a python script using PyCryptodome. The following code is an attempt to see if the NiFi encrypted message can be decrypted: I understand that in NiFi with NIFI_PBKDF2_AES_GCM_128 encryption the
Tag: encryption
Obfuscate file name and folder path
I am working on a git repo and I need to share folder hierarchy and file names to external vendor to perform some code analysis. I have whole hierarchy available in a csv file. Problem is that I cannot provide actual folder paths or file names as they contain protected information. For code analysis, external vendor only needs folder paths
Proper data encryption with a user-set password in python3
I have been looking for a proper data encryption library in python for a long while, today I needed it once again, cannot find anything, so is there any way to encrypt data using a user-set password, if I find something it’s usually insecure, if I find a good solution it has no support for user-set passwords, meaning I’m stuck,
How can I reference a string (e.g. ‘A’) to the index of a larger list (e.g. [‘A’, ‘B’, ‘C’, ‘D’, …])?
I have been racking my brain and scouring the internet for some hours now, please help. Effectively I am trying to create a self-contained function (in python) for producing a caesar cipher. I have a list – ‘cache’ – of all letters A-Z. Is it possible to analyze the string input (the ‘rawmessage’) and attribute each letter to its subsequent
How to Python gnupg (GPG) encrypt with recipient’s email address rather than their fingerprint?
How to Python-gnupg (GnuPG / GPG / OpenPGP) encrypt with recipient’s email address rather than their fingerprint? This example shows (which failes on my Ubuntu 20.04 / such a thing, but it’s an old example; excerpt: More-current (maybe?) references (like this and this) do not mention recipient email addresses, seemingly requiring numeric-only fingerprints for (presumably) public-key identication. Is it possible
Why couldn’t I encrypt and decrypt a photo file using increments?
I made a very simple encryption and decryption program to encrypt files by incrementing all bytes by 6. However, in testing, only text files work. If I use it to encrypt and decrypt photos, the result is not readable by the OS. Code in Python: Answer This part needs to be changed to a else : Like this : Otherwise,
How do I use indexing to swap letters from a text file, using two different lists?
I’m in the process of making an encrypting/decrypting code and here’s what I have so far… I’m essentially trying to modify a text file in 3 ways, paste it to another file, then use that file to decrpyt the text file, and place it inside of another file. The only real problem I’m having with doing so, is making one
Is there a way to transfer the contents of a for statement to a function?
So i’m currently trying to make a program that encrypts, then decrypts a file. For the encryption process i’m trying to move a line of the given file to another function, that will replace a letter at one index from the arranged list corresponding to the words in the file, with a letter at the same index, but isntead in
I’m having trouble writing the ADFGVX cipher in python
First of all, if anyone doesn’t know how the ADFGVX Cipher works, Here is a video on it: https://www.youtube.com/watch?v=T0xfKiU9Rr4&t=11s Assuming you now know how the cipher works, let’s look at my problem now: First, we need to create the Polybius Square. I did this by creating a table: Next, we need to create a dictionary containing the coordinates: We can
Unpickling and decrypting a file in memory in Python 3.7
I have a pickled .pkl file that I encrypted using the following encrpytion: I now want to decrypt and unpickle the file in memory. This is because I don’t want to alter the actual file in the storage. I tried the following: The original file is written as a pickled .pkl and then encrypted. So I figured I could just