Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
github.com/omar2205/squishy_cookies
Easily sign and verify cookies.
Be Careful out there, there are alpha software out there with no guarantee.
import {
cookieSign, cookieVerify
createSignedCookie, verifySignedCookie,
} from 'mod.ts'
const cookie = await cookieSign('hello', 'super_secret')
// hello.gsSaKanhysk-CuNkIJhUWsHItAOcFZbrNNTa95qCfAE.
await cookieVerify('hello.gsSaKanhysk-CuNkIJhUWsHItAOcFZbrNNTa95qCfAE.', 'super_secret')
// true
const { headers, cookie } = await createSignedCookie(
'id', '1', 'super_secret',
{ httpOnly: true, path: '/' }
)
return new Response(page, { headers })
// or
const headers = new Headers()
headers.append('set-cookie', cookie)
// Verifying a cookie
headers.append('cookie', cookie) // verifySignedCookie will search for 'cookie' header
const userId = await verifySignedCookie(headers, 'id', 'super_secret')
// userId is false if the verification failed or the cookie value
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.