Nanvault::Plaintext
Inherits Reference / Object
Plaintext data class
Constants
HMAC_ALG = OpenSSL::Algorithm::SHA256
SALT_LEN = 32
salt length
Constructors
new(ptext_str : String)
SourceInstance methods
ctext
Sourcectext=(ctext : Slice(UInt8))
Sourceencrypt_unsafe
internal encrypt method - does NOT generate salt NOTE: YOU SHOULD NOT USE THIS UNLESS YOU KNOW WHAT YOU'RE DOING
hmac
Sourcehmac=(hmac : Slice(UInt8))
Sourcelabel
these initializations also prevent this: https://github.com/crystal-lang/crystal/issues/5931
label=(label : String)
these initializations also prevent this: https://github.com/crystal-lang/crystal/issues/5931
password=(password : String)
Sourceptext
Sourceptext=(ptext : Slice(UInt8))
Sourcesalt
Sourcesalt=(salt : Slice(UInt8))
Source