289 questions
1
vote
2
answers
133
views
pycryptodome decryption (aes-128 cbc) is yielding incorrect result
I have simple code to encrypt and decrypt as follows...
(1) To encrypt:
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad, unpad
from Crypto.Hash import SHA256 as sha256
def sha(text):...
1
vote
1
answer
118
views
inconsistency in RSA algorithm when using pycryptodome
I am using python3-pycryptodome version 3.9.0-150200.9.1 on openSUSE Leap version 15.6.
While using Crypto.PublicKey.RSA class, I noticed that generated RSA keys have some algorithmic inconsistency.
...
0
votes
1
answer
195
views
ciphering services not available error on pysnmp v3 get using pysnmp7 - pycryptodome and cryptography not installed
I am unable to get snmp usng pysnmp7 - cryptography and pycryptodome installed.
Getting Error Indication: Ciphering services
Referring Ciphering services not available error on pysnmp v3 walk did not ...
1
vote
1
answer
197
views
How to do RSA Encryption in Python using PyCryptodome
I am new to the world of encryption and I was wondering if my solution for encrypting/decrypting data is okay.
When creating this, I referenced the API documentation from PyCryptodome: https://...
0
votes
1
answer
155
views
I can't install pyrebase
I have tried reinstalling pyrebase multiple times but I just can't import it to any project, I do not know why but this depencency keeps throwing errors.
note: This error originates from a ...
0
votes
1
answer
211
views
How to update pycryptodomex?
I have 3 AWS EC2 instances running Ubuntu 22.04.4 LTS, and AWS Inspector is complaining that I have an issue with CVE-2023-52323 - pycryptodomex. I have nothing to upgrade:
ubuntu@ip-XX-XX-XX-XX:~$ ...
2
votes
1
answer
168
views
Why are AES-256-CBC results in PHP and Python different when using the same keys and data?
I'm trying to encrypt the same string in PHP and Python using AES-256-CBC with the same keys and IVs. However, the results of both languages are different, even though I am using the same encryption ...
0
votes
1
answer
157
views
Java sshtools generated EDDSA signature not matching with Python's pycryptome's generated signature
I have a python library that uses pycryptodome library to sign data using Ed25519 algorithm using an openssh format ED25519 private key. The signature then needs to be verified in a Java application ...
-1
votes
1
answer
174
views
how do i decrypt a cyphertext encrypted with AES with pycryptodome?
I'm making a password manager with python that stores and encrypts passwords (using the pycriptodome module) with a main password set by the user, but the decryption does not work
Here's the function ...
-2
votes
1
answer
442
views
AES encrypt in Angular and decrypt in Python [closed]
I am trying to encrypt a password in Angular using crypto-js and decrypt in Python using pycryptodome.
My Angular code is -
import * as CryptoJS from 'crypto-js';
secretKey = "lazydog";
...
-1
votes
1
answer
345
views
missing crypto module after installing pycryptodome
i'm trying to meke an AES-256 encryption program, but python says that pycryptodome is not installed
i already tryied to install pycryptodomex but still don't work, i tryed to reinstall completly ...
-1
votes
1
answer
565
views
Python Jwt Error "Algorithm not found" and another error "do you Cryptography component is installed"
I am using python jwt to get a jwt token using algorithm RS512, but I keep getting error that algorithm is not found.
Also, I get an error that no cryptography component is found. I have installed ...
1
vote
1
answer
398
views
ModuleNotFoundError: No module named 'Crypto' Windows 11, Python 3.11.6
I made script that involves pycryptodome library. Some time ago (like 3 days ago) it worked fine, but now when I try to run it, I get this error:
Traceback (most recent call last):
File "C:\...
0
votes
0
answers
206
views
Cryptodome raises "RSA key format is not supported"
I've just written a few lines of code as example of file encryption/decryption using asymmetric crypthography (RSA). Nevertheless, I always receive the "RSA key format is not supported" ...
1
vote
1
answer
124
views
The fe(JS)&be(Python) coupling of RSA encryption
I am using RSA algorithm to encrypt data. The frontend uses the window.crypto and the backend uses the pycryptodome.
However, I discovered that after the frontend encrypts a payload, the backend can't ...