Don't crypt raw iolists.
This commit is contained in:
parent
8ae13d94dc
commit
89c1e90eb2
2 changed files with 9 additions and 1 deletions
|
|
@ -167,4 +167,11 @@ defmodule Pleroma.Web.WebsubTest do
|
|||
{:error, websub} = Websub.request_subscription(websub, poster, 1000)
|
||||
assert websub.state == "rejected"
|
||||
end
|
||||
|
||||
test "sign a text" do
|
||||
signed = Websub.sign("secret", "text")
|
||||
assert signed == "B8392C23690CCF871F37EC270BE1582DEC57A503"
|
||||
|
||||
signed = Websub.sign("secret", [["て"], ['す']])
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue