Skip to content

Commit

Permalink
doc: use SHA256 instead of SHA1 in the example.
Browse files Browse the repository at this point in the history
  • Loading branch information
spacewander committed May 25, 2018
1 parent 12857d0 commit acc8578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Synopsis
local decrypted = priv:decrypt(encrypted)
ngx.say(decrypted == "hello")

local algorithm = "SHA1"
local algorithm = "SHA256"
local priv, err = resty_rsa:new({ private_key = rsa_priv_key, algorithm = algorithm })
if not priv then
ngx.say("new rsa err: ", err)
Expand Down

0 comments on commit acc8578

Please sign in to comment.