Last active
December 22, 2015 20:28
-
-
Save lkdocs/6526453 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'openssl' | |
def sign_data(key, data) | |
key.sign(OpenSSL::Digest::SHA256.new, data) | |
end |
I'd also like to know what PACKAGE refers to. Can you let us know?
package shouldn't be there it should be:
key.sign(OpenSSL::Digest::SHA256.new, data)
http://ruby-doc.org/stdlib-1.9.3/libdoc/openssl/rdoc/OpenSSL/PKey/PKey.html
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NameError: undefined local variable or method
package' for main:Objectshould show me what
package` is?Ths