rnjn/rijndaelmanaged-cryptojs

Encrypting json string in C# and decrypting in javascript bug

kristaffa opened this issue · 0 comments

When encrypting a Json string in both the C# and JavaScript solution it gives a different encryption string. This means that when I encrypt a string in C# and decrypt it in javascript that I get the following error: "Uncaught Error: Malformed UTF-8 data"

Example:
Json string : {'name':'John','email':'test@email.com'}
key:OEl3TTJvcERiWkZ3b1hBcTlXZTZ5UT09LDYwaEdDZjlQYlgvQ3RSbHVNZUN5enAwcGtraW1EMXZLQVB2M1FZcFNyNms9