Skip to content

Commit

Permalink
Reset the debug level of the demo application to INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
iagox86 committed Jan 8, 2019
1 parent 27e5942 commit 8feb58a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Demo.rb
Expand Up @@ -15,7 +15,7 @@
require 'uri'

# Note: set this to DEBUG to get full full output
SingLogger.set_level_from_string(level: "DEBUG")
SingLogger.set_level_from_string(level: "INFO")
L = SingLogger.instance()

# 16 is good for AES and 8 for DES
Expand Down Expand Up @@ -75,6 +75,7 @@
# prepended to the data (which is common)
#result = poracle.decrypt_with_embedded_iv(data)

# Print the decryption result
puts("-----------------------------")
puts("Decryption result")
puts("-----------------------------")
Expand All @@ -90,9 +91,11 @@
data = "The most merciful thing in the world, I think, is the inability of the human mind to correlate all its contents."
end

# Do the encryption
puts "Trying to encrypt: %s" % data
result = poracle.encrypt(data)

# Print the encryption result
puts("-----------------------------")
puts("Encrypted string")
puts("-----------------------------")
Expand Down

0 comments on commit 8feb58a

Please sign in to comment.