Module: ActiveCrypto::KeyHolder

Module | ActiveCrypto::KeyHolder
In: | lib/active_crypto.rb

This module handles all standard key management features.

### Methods

enter_password session_key set_encoded_key set_session_key

### Public Instance methods

enter_password(password,salt="onetwothree")

Creates a key for object based on given password and an optional salt.

session_key()

Returns the session_key

set_encoded_key(enc)

Decodes the Base64 encoded key and uses it as it‘s session key

set_session_key(key)

Sets a session key for the object. This should be a EzCrypto::Key instance.

[Validate]