Skip to content

Instantly share code, notes, and snippets.

View krio's full-sized avatar

Kevin Rio krio

  • Vero Beach, Florida
View GitHub Profile
require 'crypt/rijndael'
#Set a pass-phrase that only you and receiver know
super_secret_key = Crypt::Rijndael.new("Don't tell anyone this key")
#Encrypt a string using the secret key
encrypted_string = super_secret_key.encrypt_string("this is the string that we need to hide!!")
#Decrypt the string using the same secret key
decrypted_string = super_secret_key.decrypt_string(encrypted_string)
require 'net/http'
require 'uri'
postData = Net::HTTP.post_form(URI.parse('http://thewebsite.net'),
{'postKey'=>'postValue'})
puts postData.body