Closed wake-0 closed 4 years ago
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.
@Arman001 what kind of encoding do you use for converting a string to int? Do you have any example code?
Thanks in advance!
@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.
@Arman001 Thank you very much for the code snippets!
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
?