SigHelper: Fix many issues

This commit is contained in:
Samantaz Fox
2024-07-03 18:20:35 +02:00
parent ec8b7916fa
commit b509aa91d5
2 changed files with 133 additions and 102 deletions

View File

@@ -17,6 +17,15 @@ struct Invidious::DecryptFunction
end
end
def decrypt_nsig(n : String) : String?
self.check_update
return SigHelper::Client.decrypt_n_param(n)
rescue ex
LOGGER.debug(ex.message || "Signature: Unknown error")
LOGGER.trace(ex.inspect_with_backtrace)
return nil
end
def decrypt_signature(str : String) : String?
self.check_update
return SigHelper::Client.decrypt_sig(str)