import hkdf from 'futoin-hkdf' ; const BYTE_LENGTH = 32 ; const ENCRYPTION_INFO = 'JWE CEK' ; const SIGNING_INFO = 'JWS Cookie Signing' ; const options = { hash : 'SHA-256' } ; see https export const encryption = ( secret ) : Buffer => hkdf ( secret , BYTE_LENGTH , { info : ENCRYPTION_INFO , ... options } ) ; export const signing = ( secret ) : Buffer => hkdf ( secret , BYTE_LENGTH , { info : SIGNING_INFO , ... options } ) ;