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 +3 -3
- data/lib/strongroom/encryptor.rb +1 -1
- data/lib/strongroom/version.rb +1 -1
- metadata +3 -3
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-
|
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-
|
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-
|
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)
|
data/lib/strongroom/encryptor.rb
CHANGED
data/lib/strongroom/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
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-
|
17
|
+
date: 2011-09-21 00:00:00 +10:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|