lib/rmega/crypto/rsa.rb in rmega-0.0.6 vs lib/rmega/crypto/rsa.rb in rmega-0.1.0

- old
+ new

@@ -1,5 +1,7 @@ +require 'execjs' + module Rmega module Crypto module Rsa extend self @@ -9,10 +11,10 @@ def context @context ||= ExecJS.compile File.read(script_path) end - def decrypt t, privk + def decrypt(t, privk) context.call "RSAdecrypt", t, privk[2], privk[0], privk[1], privk[3] end end end end