def encode_with_ts(value)
      # Not sure if this object is thread-safe, so we re-create
      # each time. 

      public_key = OpenSSL::PKey::RSA.new(self.public_key_str)

      payload = "#{value}|#{self.now_timestamp}"

      return Base64.encode64(public_key.public_encrypt(payload))
    end
def encode_with_ts(value)
      # Not sure if this object is thread-safe, so we re-create
      # each time. 

      public_key = OpenSSL::PKey::RSA.new(self.public_key_str)

      payload = "#{value}|#{self.now_timestamp}"

      return Base64.encode64(public_key.public_encrypt(payload))
    end
Will add on timestamp according to Relais protocol, encrypt,
 and Base64-encode, all per Relais protocol.