Sha256: bd8a75c558bfce0f6e924e0df1d4d3c68e317be481dde4935a968b5414441c3b

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 Bytes

Contents

# 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,
                    :encrypted_private_key

        def initialize bytes, key_iteration_count, encrypted_private_key
            @bytes = bytes
            @key_iteration_count = key_iteration_count
            @encrypted_private_key = encrypted_private_key
        end

        def encryption_key username, password
            Fetcher.make_key username, password, key_iteration_count
        end
    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lastpass-1.7.1 lib/lastpass/blob.rb
lastpass-1.7.0 lib/lastpass/blob.rb
lastpass-1.6.1 lib/lastpass/blob.rb
lastpass-1.6.0 lib/lastpass/blob.rb