generated config key does not match hash send by browser #906
-
i wanted to create config seb file on my server and to check for manipulation of file i wanted to generate a config key as is written in documentation. The generated file looks like this
for testing i have hard coded values here. Even though this object matches the configuration of file it still generates different hash that is send by browser . i am using crypto for generating hash `export function generateSHA256Hash(value): string { ` BrowserHash: 1f1b7e45a3963f5dca61acd02c2eda7c2f41141998e2611d17178ec7d333eb2c, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
All required information can be found on our website, see https://safeexambrowser.org/developer/seb-config-key.html. |
Beta Was this translation helpful? Give feedback.
-
this is the string created by strigify and i had also used double quotes earlier but was having same issue |
Beta Was this translation helpful? Give feedback.
-
The implementation for Windows may serve as a reference and can be found here: https://github.com/SafeExamBrowser/seb-win-refactoring/blob/master/SafeExamBrowser.Configuration/ConfigurationData/DataProcessor.cs#L44. |
Beta Was this translation helpful? Give feedback.
I had troubles generating the correct hash because of this part of the documentation:
When reading this sentence I assumed ConcatedString = ConfigKey + RequestUrl, but it's the other way around.
After some hours trying and reading other blogs and this part of the documentation, I figured it out.
Maybe an idea to explicitly define the order in the documentation to be more clear?