tpl/crypto: Add hmac

This commit is contained in:
Edouard
2020-06-05 20:04:11 +02:00
committed by GitHub
parent 740fa4a91d
commit 7eeebe1e5a
5 changed files with 133 additions and 0 deletions

View File

@@ -51,6 +51,13 @@ func init() {
},
)
ns.AddMethodMapping(ctx.HMAC,
[]string{"hmac"},
[][2]string{
{`{{ hmac "sha256" "Secret key" "Hello world, gophers!" }}`, `b6d11b6c53830b9d87036272ca9fe9d19306b8f9d8aa07b15da27d89e6e34f40`},
},
)
return ns
}