class Crypto::Secret::Bidet

Overview

Leaves less sh** around if you forget to wipe. A safer default for large secrets that may stress mlock limits or low confidentiality secrets.

Included Modules

Extended Modules

Direct Known Subclasses

Defined in:

crypto-secret/bidet.cr

Constructors

Instance Method Summary

Instance methods inherited from module Crypto::Secret::Stateless

finalize finalize, noaccess : self noaccess, readonly : self
readonly(& : Bytes -> U) forall U
readonly
, readwrite : self
readwrite(& : Bytes -> U) forall U
readwrite
, reset reset

Instance methods inherited from module Crypto::Secret

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

Constructor Detail

def self.new(size) #

[View source]
def self.new(*, references : Bytes) #

[View source]

Instance Method Detail

def bytesize : Int32 #

[View source]
def to_slice(& : Bytes -> U) forall U #

[View source]