EzSSL 0.0.5 → 0.0.6
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/lib/ezssl.rb +3 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9d2001eb3e80f0d226839a75de0ae21bc7d48a7f17af007461b80e7f33a9aab
|
4
|
+
data.tar.gz: a5b680aa105c69484d62888c573fff873c618b786ae637d2e89a6a17150afa01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33f2d4cf4e0df8a6a410d31b900480f3a0dc04684213f7cc778a82de511f22f2e68d9d0a0af4c6f774090b82fe07fe53b176ee5e840d95b92a671753f6bdc924
|
7
|
+
data.tar.gz: 3b5418e9f00b2de9288d93a4db6fc817fe9df852f0de59f54d9b9a886b8a4811f664ee9a346890f5b18424b790484196d3d1171bb9bd105bd83edc073ce83093
|
data/lib/ezssl.rb
CHANGED
@@ -35,6 +35,7 @@ module EzSSL
|
|
35
35
|
def decrypt(msg)
|
36
36
|
return @pair.private_decrypt(msg)
|
37
37
|
end
|
38
|
+
|
38
39
|
end
|
39
40
|
|
40
41
|
class Client
|
@@ -89,12 +90,13 @@ module EzSSL
|
|
89
90
|
# The object that allows communication from Server to Client.
|
90
91
|
class Handle
|
91
92
|
|
93
|
+
attr_reader :send
|
92
94
|
def initialize(client,key,server)
|
93
95
|
# The represented client
|
94
96
|
@client=client
|
95
97
|
# The public key of the represented client
|
96
98
|
@key=OpenSSL::PKey::RSA.new(key)
|
97
|
-
@
|
99
|
+
@send=@key.public_encrypt('test lol').length
|
98
100
|
@server=server
|
99
101
|
end
|
100
102
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: EzSSL
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas Reinheart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: OpenSSL is confusing to people new to socket programming, so i aim to
|
14
14
|
make the process easier
|
@@ -23,6 +23,7 @@ licenses:
|
|
23
23
|
- MIT
|
24
24
|
metadata:
|
25
25
|
source_code_uri: https://github.com/lonelylittlelucas/ezssl
|
26
|
+
documentation_uri: https://www.rubydoc.info/gems/EzSSL/
|
26
27
|
post_install_message:
|
27
28
|
rdoc_options: []
|
28
29
|
require_paths:
|