I am currently working on pynacl library. The problem is I need to use the 45 byte shared key generated to be used to decrypt an AES-CBC encryption with an 25 byte IV. But the AES-CBC can only take 16/24/32 byte keys and 16 byte IV. Can anyone give me some suggestions on how to convert the 45 byte key to 32 bytes and the 25 byte IV to 16 bytes size.
Converting 45 byte shared key in pynacl to 32 byte key to use along with AES-CBC with 25 byte IV
278 Views Asked by user201537 At
0
There are 0 best solutions below
Related Questions in PYTHON-3.X
- Update a text file with ( new words+ \n ) after the words is appended into a list
- Kivy - Create new widget and set its position and size
- TypeError: encoding or errors without a string argument
- How to print varible name in python
- PyQt, Python 3: Lambda slot assigning signal argument to a variable?
- How to write data to stdin of the first process in a Python shell pipeline?
- pygame.draw.circle, still draws a square
- Duplicate Frames Created When Calling a Function in a Tkinter Application
- Python TypeError: can only concatenate tuple (not "int") to tuple
- recursively editing member variable: All instances have same value
- missing 1 required positional argument: 'key'
- How do I fix this sorting error?
- Dictionary values missing
- Why does opening a file in two different encodings work as expected?
- Binary bit flip generator in python
Related Questions in AES
- Do I have to randomize key in OpenSSL
- AES 256 and Base64 Encrypted string works on iOS 8 but truncated on iOS 7
- Encrypting (large) files in PHP with openSSL
- 32-character PHP AES Key for mcrypt_encrypt
- Javascript library forge does not work in Internet Explorer IE8
- ImportError: No module named Crypto
- AES CBC - Have message input and output and IV and have to find key
- AES with PKCS#5 padding
- Sage Pay Forms V3.00 AES-128 Encryption VB.Net
- C# AES and RSA File Encryption - How to use IV?
- Sagepay 2.22 to 3.00 form upgrade - PHP update to AES encryption
- vb.net AES decryption returns "data is incomplete block"
- Symmetric encryption (AES) in Apache Thrift
- Can I specify the nonce and counter in AES encryption counter mode?
- Encryption decryption with AES Crypto-JS does not work in an android webview?
Related Questions in PUBLIC-KEY-ENCRYPTION
- Storing Encryption Key in Application
- Original Base64 value is edited but still it is giving same normal string
- Verify a file signature inside a Linux kernel module
- Retrieve ECC Public Key from Base64 encoded string
- What format are .tox files stored in?
- How Restful Request Public Key and Private Key Works for each request
- Use previously generated private key in ECIES
- How to create valid public and private key for digital sign?
- I am getting error while using SecKeyEncrypt with Secure Enclave
- How can you asymmetrically encrypt a key using ECC in Java?
- Is it possible to have a 128 bytes RSA public exponent?
- AES Encryption between iOS and C#
- unable to verify string signed by openssl with dsa key
- Public key and private key relationship
- Getting javax.crypto.IllegalBlockSizeException: last block incomplete in decryption error
Related Questions in PYNACL
- Installed but still getting RuntimeError: PyNaCl library needed in order to use voice
- I couldn't install discord.py
- ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly
- Can I use pyNaCl sealed boxes with an existing openssh key pair?
- Converting 45 byte shared key in pynacl to 32 byte key to use along with AES-CBC with 25 byte IV
- Unable To Run AzureML Experiment with SDK - Failed to Build Wheel for pynacl / Exit status:1
- PyNaCl doesn't want to install during PyGithub instalation(wheel building doesn't finish)
- pynacl crypto_core_hsalsa20 for nuki smartlock 2.0
- Generate 33 bytes public key for curve25519 in python
- How to use Python to save nacl SigningKey public and private keys as plain text?
- Installation of robotframework-sshlibrary within docker image based on alpine
- pynacl fails, while building (setup.py)
- Converting an encrypted message to string
- PyNaCl change nonce size
- PyNaCl failed to import SealedBox
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?