lib/ig_markets/password_encryptor.rb
def encrypt(password)
      encoded_password = Base64.strict_encode64 "#{password}|#{time_stamp}"

      encrypted_password = public_key.public_encrypt encoded_password

      Base64.strict_encode64 encrypted_password
    end
# Encrypts a password using this encryptor's public key and time stamp, which must have been set prior to calling
# this method.
#
# @param [String] password The password to encrypt.
#
# @return [String] The encrypted password encoded in Base64.
Encrypts a password using this encryptor's public key and time stamp, which must have been set prior to calling
this method.
Encrypts a password using this encryptor ' s public key and time stamp which must have been set prior to calling this method .
def encrypt(password)
      encoded_password = Base64.strict_encode64 "#{password}|#{time_stamp}"
      encrypted_password = public_key.public_encrypt encoded_password
      Base64.strict_encode64 encrypted_password
    end
def encrypt ( password ) encoded_password = Base64 . strict_encode64 "#{password}|#{time_stamp}" encrypted_password = public_key . public_encrypt encoded_password Base64 . strict_encode64 encrypted_password end
Encrypts a password using this encryptor's public key and time stamp, which must have been set prior to calling
this method.
Encrypts a password using this encryptor ' s public key and time stamp which must have been set prior to calling this method .
The encrypted password encoded in Base64.
The encrypted password encoded in Base64 .
String
password
password The password to encrypt.
password The password to encrypt .