CookieSigner constructor

CookieSigner(
  1. List<int> keyBytes, {
  2. Hash? hash,
})

Creates an hmac from an array of keyBytes and a hash (defaults to sha256).

Implementation

CookieSigner(List<int> keyBytes, {Hash? hash})
    : hmac = Hmac(hash ?? sha256, keyBytes);