Should be possible, I was able to make a script that was received a file encrypted using AES and I was able to decrypt it with my script using AES. I had to use a third party library and not rely on NS built in functions. Should be possible the other way around.