pailliercryptolib_python icon indicating copy to clipboard operation
pailliercryptolib_python copied to clipboard

Updating a single element in encrypt array

Open imtiyazuddin opened this issue 7 months ago • 0 comments

I want to be able to update a single element in the ciphertext array, something like:

ct_a[0] = ct_a[0]*5

but I am getting following error


TypeError Traceback (most recent call last) Cell In[58], line 1 ----> 1 ct_a[0] = ct_a[0]*5

TypeError: 'PaillierEncryptedNumber' object does not support item assignment

is there a way to do this?

imtiyazuddin avatar Jun 11 '25 12:06 imtiyazuddin