virgil-sdk 4.2.3 → 4.2.4
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.
- checksums.yaml +4 -4
- data/README.md +9 -10
- data/lib/virgil/sdk/cryptography/keys/key_storage.rb +1 -0
- data/lib/virgil/sdk/high_level/virgil_identity.rb +1 -0
- data/lib/virgil/sdk/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1112219ff0dfd5bad7af6f0d75c4fae2d77dd26
|
|
4
|
+
data.tar.gz: 966c78437fbe3bdbf543d9118ddabfd2ba27affb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 734f7cf85b9319d9d0f3eb7234298bed7eff1ccf1a2535878cd92b0f5ac5efedf39bf45fb23008fc2b2e7d67ea3676da32643a9e01ff5cd2bed4a79d40a6e665
|
|
7
|
+
data.tar.gz: b065167b22e3ab30ae9ba5b54e7ec6a5c76ad7715745e17c81e05368bbe0b065f004d1fa32f72fd30ef4975bb555406f801e4067cbe334f711e9101c69f325d5
|
data/README.md
CHANGED
|
@@ -23,14 +23,14 @@ gem install virgil-sdk
|
|
|
23
23
|
or add the following line to your Gemfile:
|
|
24
24
|
|
|
25
25
|
```
|
|
26
|
-
gem 'virgil-sdk', '~> 4.2.
|
|
26
|
+
gem 'virgil-sdk', '~> 4.2.4'
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
__Next:__ [Get Started with the Ruby SDK][_getstarted].
|
|
30
30
|
|
|
31
31
|
## Encryption Example
|
|
32
32
|
|
|
33
|
-
Virgil Security makes it super easy to add encryption to any application. With our SDK you create a public [__Virgil Card__]
|
|
33
|
+
Virgil Security makes it super easy to add encryption to any application. With our SDK you create a public [__Virgil Card__][_guide_virgil_cards] for every one of your users and devices. With these in place you can easily encrypt any data in the client.
|
|
34
34
|
|
|
35
35
|
```ruby
|
|
36
36
|
require "virgil/sdk"
|
|
@@ -61,7 +61,7 @@ alice_key = virgil.keys.load("alice_key_1", "mypassword")
|
|
|
61
61
|
original_message = alice_key.decrypt(transfer_data).to_s
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
__Next:__ To [get you properly started][
|
|
64
|
+
__Next:__ To [get you properly started][_guide_encryption] you'll need to know how to create and store Virgil Cards. Our [Get Started guide][_guide_encryption] will get you there all the way.
|
|
65
65
|
|
|
66
66
|
__Also:__ [Encrypted communication][_getstarted_encryption] is just one of the few things our SDK can do. Have a look at our guides on [Encrypted Storage][_getstarted_storage], [Data Integrity][_getstarted_data_integrity] and [Passwordless Login][_getstarted_passwordless_login] for more information.
|
|
67
67
|
|
|
@@ -76,7 +76,7 @@ To initialize the SDK on the client side you will only need the __access token__
|
|
|
76
76
|
virgil = VirgilApi.new(access_token: "[YOUR_ACCESS_TOKEN_HERE]")
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
> __Note:__ this client will have
|
|
79
|
+
> __Note:__ this client will have limited capabilities. For example, it will be able to generate new __Cards__ but it will need a server-side client to transmit these to Virgil.
|
|
80
80
|
|
|
81
81
|
To initialize the SDK on the server side we will need the __access token__, __app id__ and the __App Key__ you created on the [Developer Dashboard](https://developer.virgilsecurity.com/).
|
|
82
82
|
|
|
@@ -87,16 +87,14 @@ context = VirgilContext.new(
|
|
|
87
87
|
# Credentials are required only in case of publish and revoke local Virgil Cards.
|
|
88
88
|
credentials: VirgilAppCredentials.new(app_id: "[YOUR_APP_ID_HERE]",
|
|
89
89
|
app_key_data: VirgilBuffer.from_file("[YOUR_APP_KEY_PATH_HERE]"),
|
|
90
|
-
app_key_password: "[YOUR_APP_KEY_PASSWORD_HERE]")
|
|
91
|
-
|
|
92
|
-
VirgilBuffer.from_base64("[YOUR_PUBLIC_KEY_HERE]"))]
|
|
93
|
-
)
|
|
90
|
+
app_key_password: "[YOUR_APP_KEY_PASSWORD_HERE]")
|
|
91
|
+
)
|
|
94
92
|
|
|
95
93
|
virgil = VirgilApi.new(context: context)
|
|
96
94
|
|
|
97
95
|
```
|
|
98
96
|
|
|
99
|
-
Next: [Learn more about our the different ways of initializing the Ruby SDK]
|
|
97
|
+
Next: [Learn more about our the different ways of initializing the Ruby SDK][_guide_initialization] in our documentation.
|
|
100
98
|
|
|
101
99
|
## Documentation
|
|
102
100
|
|
|
@@ -128,7 +126,8 @@ Our developer support team is here to help you. You can find us on [Twitter](htt
|
|
|
128
126
|
[_getstarted_data_integrity]: https://virgilsecurity.com/docs/use-cases/data-verification
|
|
129
127
|
[_getstarted_passwordless_login]: https://virgilsecurity.com/docs/use-cases/passwordless-authentication
|
|
130
128
|
[_guides]: https://stg.virgilsecurity.com/docs/sdk/ruby/features
|
|
131
|
-
[_guide_initialization]: https://virgilsecurity.com/docs/sdk/ruby/
|
|
129
|
+
[_guide_initialization]: https://virgilsecurity.com/docs/sdk/ruby/getting-started#initializing
|
|
132
130
|
[_guide_virgil_cards]: https://virgilsecurity.com/docs/sdk/ruby/features#virgil-cards
|
|
133
131
|
[_guide_virgil_keys]: https://virgilsecurity.com/docs/sdk/ruby/features#virgil-keys
|
|
132
|
+
[_guide_encryption]: https://virgilsecurity.com/docs/sdk/ruby/features#encryption
|
|
134
133
|
[_initialize_root]: https://virgilsecurity.com/docs/sdk/ruby/programming-guide#initializing
|
data/lib/virgil/sdk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: virgil-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.2.
|
|
4
|
+
version: 4.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitriy Dudkin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-03-
|
|
11
|
+
date: 2017-03-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: virgil-crypto
|
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
196
196
|
version: '0'
|
|
197
197
|
requirements: []
|
|
198
198
|
rubyforge_project:
|
|
199
|
-
rubygems_version: 2.6.
|
|
199
|
+
rubygems_version: 2.6.8
|
|
200
200
|
signing_key:
|
|
201
201
|
specification_version: 4
|
|
202
202
|
summary: Virgil keys service SDK
|