DEV: Fix build

DEV: Fix build

Follow-up to a4a96742e21254aee78d2af34f80646db5015b52

diff --git a/lib/open_ssl.rb b/lib/openssl.rb
similarity index 100%
rename from lib/open_ssl.rb
rename to lib/openssl.rb
diff --git a/lib/post_creator.rb b/lib/post_creator.rb
index 8995275..1a4aa8f 100644
--- a/lib/post_creator.rb
+++ b/lib/post_creator.rb
@@ -48,7 +48,7 @@ class PostCreator
 
   def self.export_key(user, topic_key)
     identity = user.custom_fields['encrypt_public']
-    jwk = JSON.parse(Base64.decode64(identity[2..]))['encryptPublic']
+    jwk = JSON.parse(Base64.decode64(identity.[2..-1]))['encryptPublic']
 
     n = OpenSSL::BN.new(Base64.urlsafe_decode64(jwk['n']), 2)
     e = OpenSSL::BN.new(Base64.urlsafe_decode64(jwk['e']), 2)
diff --git a/plugin.rb b/plugin.rb
index 6b25163..cf7dbe3 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -19,7 +19,7 @@ DiscoursePluginRegistry.serialized_current_user_fields << 'encrypt_private'
 
 after_initialize do
   load File.expand_path("../app/jobs/scheduled/encrypt_consistency.rb", __FILE__)
-  load File.expand_path("../lib/open_ssl.rb", __FILE__)
+  load File.expand_path("../lib/openssl.rb", __FILE__)
   load File.expand_path("../lib/post_creator.rb", __FILE__)
 
   Rails.configuration.filter_parameters << :encrypt_private

GitHub sha: 14b491dd