lib/bixby_common/util/crypto_util.rb in bixby-common-0.3.12 vs lib/bixby_common/util/crypto_util.rb in bixby-common-0.3.13

- old
+ new

@@ -57,10 +57,10 @@ end data = StringIO.new(c.update(payload) + c.final) ts = data.readline.strip - if (Time.new.to_i - ts.to_i) > 60 then + if (Time.new.to_i - ts.to_i) > 900 then # must be within last 15 min raise Bixby::EncryptionError, "payload verification failed", caller end return data.read end