module Crypto::Secret::Stateless

Overview

Provides a 0 overhead implementation of [#readwrite, #readonly, #noaccess, #reset] with no protection

Data is still erased when out of scope

Included Modules

Direct including types

Defined in:

crypto-secret/lib.cr
crypto-secret/stateless.cr

Instance Method Summary

Instance methods inherited from module Crypto::Secret

==(other : Secret) : Bool
==(other : Bytes) : Bool
==
, bytesize : Int32 bytesize, copy_from(data : Bytes) : Nil copy_from, dup dup, finalize finalize, hexstring : String hexstring, inspect(io : IO) : Nil inspect, move_from(data : Bytes) : Nil move_from, noaccess : self noaccess, random : self random, readonly : self readonly, readwrite : self readwrite, reset reset, wipe
wipe(&)
wipe

Instance Method Detail

def finalize #

[View source]
def noaccess : self #

Not thread safe


[View source]
def noaccess(&) #

Not thread safe


[View source]
def readonly : self #

Not thread safe


[View source]
def readonly(&) #

Yields a Slice that is readable possibly writable depending on the prior protection level and underlying implementation Don't write to it

Not thread safe


[View source]
def readwrite : self #

Not thread safe


[View source]
def readwrite(&) #

Yields a Slice that is readable and writable

slice is only available within the block

Not thread safe


[View source]
def reset #

Not thread safe


[View source]