Skip to content

Instantly share code, notes, and snippets.

Kevin Rio krio

  • Vero Beach, Florida
Block or report user

Report or block krio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SecureEncryption.rb
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)
View RubyPOSTRequestWithContentReturn.rb
require 'net/http'
require 'uri'
postData = Net::HTTP.post_form(URI.parse('http://thewebsite.net'),
{'postKey'=>'postValue'})
puts postData.body
You can’t perform that action at this time.