strongroom 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -18,15 +18,15 @@ Usage
18
18
  ```ruby
19
19
  # Encrypt with public key:
20
20
  enigma = Strongroom::Encryptor.new("spec/fixtures/public_key").encrypt("secret message")
21
- # => #<Strongroom::Enigma AES-128-CFB ciphertext: 14 bytes, encrypted_key: 256 bytes, iv: 16 bytes>
21
+ # => #<Strongroom::Enigma AES-128-CBC ciphertext: 14 bytes, encrypted_key: 256 bytes, iv: 16 bytes>
22
22
 
23
23
  # Store enigma as US-ASCII YAML text:
24
24
  s = enigma.serialize
25
- => "--- \ncipher: AES-128-CFB\nciphertext: |\n 55djlRLf[...]p8w==\n\n"
25
+ => "--- \ncipher: AES-128-CBC\nciphertext: |\n 55djlRLf[...]p8w==\n\n"
26
26
 
27
27
  # Retrieve enigma:
28
28
  enigma = Strongroom::Enigma.deserialize(s)
29
- # => #<Strongroom::Enigma AES-128-CFB ciphertext: 14 bytes, encrypted_key: 256 bytes, iv: 16 bytes>
29
+ # => #<Strongroom::Enigma AES-128-CBC ciphertext: 14 bytes, encrypted_key: 256 bytes, iv: 16 bytes>
30
30
 
31
31
  # Decrypt with private key:
32
32
  Strongroom::Decryptor.new("spec/fixtures/private_key").decrypt(enigma)
@@ -26,7 +26,7 @@ module Strongroom
26
26
  private
27
27
 
28
28
  def cipher
29
- @cipher ||= OpenSSL::Cipher.new("AES-128-CFB")
29
+ @cipher ||= OpenSSL::Cipher.new("AES-128-CBC")
30
30
  end
31
31
 
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module Strongroom
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paul Annesley
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-09-19 00:00:00 +10:00
17
+ date: 2011-09-21 00:00:00 +10:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency