ece 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/ece.gemspec +1 -1
- data/lib/ece/ece.rb +1 -1
- data/lib/ece/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 224dae0f5809056afa010473e4fdd7cd0ac33d9c
|
4
|
+
data.tar.gz: e038af72e2b067e76e57433cdaed07ae4c2a0a5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 339b6561b5715d3430d7e3abaf696886042f5c798a47000bccf0a77c06b53d47daa65d583cf7f5fd0fea2b2ae6e2ade2862b9b834b39802a5b79152a108a9f84
|
7
|
+
data.tar.gz: fd3f463c8426080f8336b5eebcddf05bcb3128efe9019b82ceb6694de6f4d3a3830e85c818b4feddc23897c8adc81a7fc0589c93d478d80fe1c13b9cc6bd01d6
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# ECE
|
2
2
|
|
3
3
|
Ruby implementation of encrypted content-encoding.
|
4
4
|
|
@@ -31,11 +31,11 @@ key = Random.new.bytes(16)
|
|
31
31
|
salt = Random.new.bytes(16)
|
32
32
|
data = "Your very private data"
|
33
33
|
|
34
|
-
encrypted_data =
|
34
|
+
encrypted_data = ECE.encrypt(data, key: key, salt: salt)
|
35
35
|
```
|
36
36
|
Decrypting:
|
37
37
|
```ruby
|
38
|
-
|
38
|
+
ECE.decrypt(encrypted_data, key: key, salt: salt)
|
39
39
|
```
|
40
40
|
Data can be bytestring as well.
|
41
41
|
## Contributing
|
data/ece.gemspec
CHANGED
data/lib/ece/ece.rb
CHANGED
data/lib/ece/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
class
|
2
|
-
VERSION = "0.1.
|
1
|
+
class ECE
|
2
|
+
VERSION = "0.1.3"
|
3
3
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ece
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Shevtsov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|