rails-session-0.1.4.0: Decrypt Ruby on Rails sessions in Haskell
Safe HaskellSafe-Inferred
LanguageGHC2021

Web.Rails.Session.Types

Synopsis

Documentation

newtype Secret Source #

Constructors

Secret ByteString 

newtype InitVector Source #

Wrapper around initialisation vector.

Constructors

InitVector ByteString 

newtype Cookie Source #

Wrapper around raw cookie.

Constructors

Cookie ByteString 

Instances

Instances details
Show Cookie Source # 
Instance details

Defined in Web.Rails.Session.Types

Eq Cookie Source # 
Instance details

Defined in Web.Rails.Session.Types

Methods

(==) :: Cookie -> Cookie -> Bool #

(/=) :: Cookie -> Cookie -> Bool #

Ord Cookie Source # 
Instance details

Defined in Web.Rails.Session.Types

newtype Salt Source #

Wrapper around salt.

Constructors

Salt ByteString 

Instances

Instances details
Show Salt Source # 
Instance details

Defined in Web.Rails.Session.Types

Methods

showsPrec :: Int -> Salt -> ShowS #

show :: Salt -> String #

showList :: [Salt] -> ShowS #

Eq Salt Source # 
Instance details

Defined in Web.Rails.Session.Types

Methods

(==) :: Salt -> Salt -> Bool #

(/=) :: Salt -> Salt -> Bool #

Ord Salt Source # 
Instance details

Defined in Web.Rails.Session.Types

Methods

compare :: Salt -> Salt -> Ordering #

(<) :: Salt -> Salt -> Bool #

(<=) :: Salt -> Salt -> Bool #

(>) :: Salt -> Salt -> Bool #

(>=) :: Salt -> Salt -> Bool #

max :: Salt -> Salt -> Salt #

min :: Salt -> Salt -> Salt #

newtype SecretKey Source #

Wrapper around secret.

Constructors

SecretKey ByteString 

mkCookie :: ByteString -> Cookie Source #

Lift a cookie into a richer type.

mkSalt :: ByteString -> Salt Source #

Lift salt into a richer type.

mkSecretKeyBase :: ByteString -> SecretKeyBase Source #

Lifts secret into a richer type.