Sha256: 0fa2ba63c37359bb40f6eaafb47950bd3d8690b7c3eff27d4fa2d3b3f5322cd7
Contents?: true
Size: 936 Bytes
Versions: 4
Compression:
Stored size: 936 Bytes
Contents
# Copyright (C) 2013 Dmitry Yakimenko (detunized@gmail.com). # Licensed under the terms of the MIT license. See LICENCE for details. require "spec_helper" describe LastPass::Blob do let(:bytes) { "TFBBVgAAAAMxMjJQUkVNAAAACjE0MTQ5".decode64 } let(:key_iteration_count) { 500 } let(:encrypted_private_key) { "DEADBEEF" } let(:username) { "postlass@gmail.com" } let(:password) { "pl1234567890" } let(:encryption_key) { "OfOUvVnQzB4v49sNh4+PdwIFb9Fr5+jVfWRTf+E2Ghg=".decode64 } subject { LastPass::Blob.new bytes, key_iteration_count, encrypted_private_key } its(:bytes) { should eq bytes } its(:key_iteration_count) { should eq key_iteration_count } its(:encrypted_private_key) { should eq encrypted_private_key } describe "#encryption_key" do it "returns encryption key" do expect(subject.encryption_key username, password).to eq encryption_key end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lastpass-1.7.1 | spec/blob_spec.rb |
lastpass-1.7.0 | spec/blob_spec.rb |
lastpass-1.6.1 | spec/blob_spec.rb |
lastpass-1.6.0 | spec/blob_spec.rb |