Package 'scilis'

Title: Secure Cookies for 'Ambiorix'
Description: Sign and unsign cookies to ensure they have not been tempered with.
Authors: John Coene [aut, cre], Opifex [fnd, cph]
Maintainer: John Coene <[email protected]>
License: GPL (>= 2)
Version: 0.0.0.9000
Built: 2024-11-01 02:52:30 UTC
Source: https://github.com/devOpifex/scilis

Help Index


Scilis

Description

Signs (and unsigns) cookies to ensure they are not altered by clients.

Usage

scilis(secret)

Arguments

secret

Secret for has creation. Ideally use an environment variable so as to keep this secret.

Details

This signs the values of cookies with a base 64 encoded sha256 hash. Note that the value of the cookie is still visible. When cookies are being read the value is compared to the expected hash to ensure it was not altered by the client. If the cookie appears aletered the returned value is character(0L).

Examples

app <- ambiorix::Ambiorix$
 new()$
 use(scilis("secret"))

Separator

Description

Used as the value to join and split at when signing and unsigning a cookie value, respectively.

Usage

separator()