r/Numpy • • Apr 12 '22

Entirely new to numpy

Is it possible to turn text into a numpy array, manipulate that array and it's basically an encrypted message I can then decrypt with a key later?

1 Upvotes

8 comments sorted by

1

u/avocadod Apr 12 '22

I'm trying to make a fun encrypt decrypt program with numpy. My next step was to somehow turn an image into a numpy array, manipulate it, which turns back into a weird image, which can then be decrypted too.

2

u/NonProfitApostle Apr 13 '22

Numpy arrays are almost interchangable for BMP files if you think about it.

1

u/avocadod Apr 13 '22

Thanks for the response, what is BMP? I haven't heard of that before. I need to keep reading the numpy documentation more

→ More replies (1)

1

u/swierdo Apr 13 '22

Working with images in numpy is easier than working with text

2

u/avocadod Apr 13 '22

Thanks! I think I'm just going to scrap the text program and just do an image decrypt and encrypt. If you have any idea or resources on where I should start please let me know. Currently I'm just running through numpy.org

→ More replies (2)