carrierwave_encrypter_decrypter 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2NiYjhkNDYyZWUzZmM3ZTdmMzZhZjkwNTdjMzI1MjVmNmE1NTg1MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDRlMzQxMmUyZjNhMGE1ZDg1MzFmZjFmNmYxMDA1YmQ3OGVjODAxNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjAzNDc5ZmJlZGI0YWY0YTk4YzM5MzY1ZTE1MmM1NTVhMmI0Yzg2MzhiZjMy
|
10
|
+
OGE1YmZlYjAxZDE0MGIyZTk1NTA4YTZmM2MxMWUyMjQ0ZjBiZjRhNGRhY2Ux
|
11
|
+
OTM1N2IwOGU1NmQ2OWYxZDg4MTZiODY4OTE0ZjM4OTAyNWM1YWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDUxY2MwZGZhYjYxMGUyZTI1MWEzZjdiZmRjMWVjM2MyZGY1N2YxNGY5MGRk
|
14
|
+
MTY0YWJhMjFiZmE0YTM0ZjdhZTc5NDk5OTNlMTExMTI5OWQ3YTgwMjllYTZl
|
15
|
+
Y2YzMThmMzNlMzRjNWIyYjQyYjVhNjM3ZGU2YTk2YWQ4Yzc5Yzg=
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'carrierwave/encrypter_decrypter/openssl/aes'
|
2
|
+
|
3
|
+
class Decryption
|
4
|
+
def self.start!(obj,opts)
|
5
|
+
encryption_type = Carrierwave::EncrypterDecrypter.configuration.encryption_type
|
6
|
+
|
7
|
+
case encryption_type
|
8
|
+
when :aes
|
9
|
+
Openssl::Aes.decrypt_for(obj,opts)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrierwave_encrypter_decrypter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ankit gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logger
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- lib/carrierwave/encrypter_decrypter/encryption.rb
|
63
63
|
- lib/carrierwave/encrypter_decrypter/uploader.rb
|
64
64
|
- lib/carrierwave/encrypter_decrypter/downloader.rb
|
65
|
+
- lib/carrierwave/encrypter_decrypter/decryption.rb
|
65
66
|
- lib/carrierwave/encrypter_decrypter/configuration.rb
|
66
67
|
- lib/carrierwave/encrypter_decrypter/version.rb
|
67
68
|
- lib/carrierwave/encrypter_decrypter/openssl/aes.rb
|