You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.
I wanted to encrypt a text message with PySEAL and then decrypt it. Now I noticed that there is no Encoder that uses a string as input for encoding a Plaintext object.
Is there a suitable solution for this e.g. has someone implemented an own StringEncoder?
The text was updated successfully, but these errors were encountered:
I don't think there is a StringEncoder for pyseal yet. I am currently just converting string to bits and then encrypting it with simple IntegerEncoder and it works fine. If there is another way then kindly inform me.
@Blackjack92 may be it is naive approach but you have to convert first string to bits like below
then you can convert resulting list into a numpy array and can do bit by bit encryption and then during decryption you will get bits and you can convert back to a string using
I hope it helps.
Hello everybody,
I wanted to encrypt a text message with PySEAL and then decrypt it. Now I noticed that there is no
Encoder
that uses a string as input for encoding aPlaintext
object.Is there a suitable solution for this e.g. has someone implemented an own
StringEncoder
?The text was updated successfully, but these errors were encountered: