class Sodium::Password::Key
  
  - Sodium::Password::Key
 - Sodium::Password::Abstract
 - Reference
 - Object
 
Overview
See Sodium::Password::Key::Create
TODO Usage example using the same params with multiple passwords.
Defined in:
sodium/password/key.crInstance Method Summary
- #derive_kdf(pass, *, salt = nil) : Kdf
 - 
        #derive_key(pass : Bytes | String, key_bytes : Int32, *, salt : String | Bytes | Nil = nil) : SecureBuffer
        
          
Must set a mode before calling.
 - 
        #mode : Mode
        
          
Used by and must be set before calling #derive_key
 - 
        #mode=(mode : Mode)
        
          
Used by and must be set before calling #derive_key
 - #random_salt!
 - #salt : Bytes | Nil
 - #salt=(salt : Bytes | Nil)
 - #to_params(*, salt = nil, key_size = nil, tcost : Float64 | Nil = nil)
 
Instance methods inherited from class Sodium::Password::Abstract
  
  
    
      mem : UInt64
    mem, 
    
  
    
      mem=(mem : UInt64)
    mem=, 
    
  
    
      ops : UInt64
    ops, 
    
  
    
      ops=(ops : UInt64)
    ops=, 
    
  
    
      random_salt
    random_salt
    
  
    
    
  Class methods inherited from class Sodium::Password::Abstract
  
  
    
      from_params(hash)
    from_params
    
  
  
    
    
    
  
    
    
    
  
Instance Method Detail
        
        def derive_key(pass : Bytes | String, key_bytes : Int32, *, salt : String | Bytes | Nil = nil) : SecureBuffer
        #
      
      
        Must set a mode before calling.