# Copyright (C) 2013 Dmitry Yakimenko (detunized@gmail.com). # Licensed under the terms of the MIT license. See LICENCE for details. module LastPass class Blob attr_reader :bytes, :key_iteration_count def initialize bytes, key_iteration_count @bytes = bytes @key_iteration_count = key_iteration_count end def encryption_key username, password Fetcher.make_key username, password, key_iteration_count end end end