I want to connect a programm to the OBS Websocket Plugin and need to encrypt the password to match the encryption of the plugin as an authentification. Here is explained how I have to encrypt the password but ony the encryption from this Site worked.
I have to generate a binary SHA256 hash and encode the result to Base64 but this code won't work:
Marshalls.utf8_to_base64( str((passwort+salt).sha256_text() ) )
Example Strings with expected output:
1. Data from OBS Websocket:
2. password+salt -> binarysha256 -> Base64 encryption
3. result from 2. +challenge -> binarysha256 -> Base64 encryption
Result from 2. (password+salt):
Result from 3. (2. + challenge):
The 3rd result is the final and worked but only with the website and not with Godot.
I hope someone can explaine where the mistake in this code is.
Unfortunately i am not familiar with encryption and hashing.