Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F56224990
digest.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
298 B
Referenced Files
None
Subscribers
None
digest.ex
View Options
defmodule
Pleroma.Web.Plugs.DigestPlug
do
alias
Plug.Conn
require
Logger
def
read_body
(
conn
,
opts
)
do
{
:ok
,
body
,
conn
}
=
Conn
.
read_body
(
conn
,
opts
)
digest
=
"SHA-256="
<>
(
:crypto
.
hash
(
:sha256
,
body
)
|>
Base
.
encode64
())
{
:ok
,
body
,
Conn
.
assign
(
conn
,
:digest
,
digest
)}
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Fri, Apr 3, 9:44 PM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1226298
Default Alt Text
digest.ex (298 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment