class Vault::ObfuscatedPassword

Overview

Stores a password XOR'd with a random pad so plaintext never sits in memory. A memory dump would show random bytes.

Defined in:

vault/vault.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(plaintext : String) #

[View source]

Instance Method Detail

def reveal(& : String -> ) : Nil #

Temporarily reveal the password, yield it, then wipe the copy.


[View source]
def wipe : Nil #

Wipe all internal buffers.


[View source]