I had a asp.net application with a file upload, that was doing a vernam encryption. I am trying to do the exact same thing in angular with a php backend, but the results are not as expected. The file is not encrypted as expected and can't be accessed by the client. Probably theres just a small issue with the code. I need my code adapted so it works again.