Skip to content

Instantly share code, notes, and snippets.

View rezurrector's full-sized avatar

Angel Robert Marquez rezurrector

View GitHub Profile
@rezurrector
rezurrector / run_perl_python_scipts_in_rails.rb
Created April 9, 2020 03:29 — forked from alexvbush/run_perl_python_scipts_in_rails.rb
How to run Perl and Python scripts in a Rails app.
#This will run Perl and Python scripts respectively in Rails console using 'gem escape'. Gem Escape allows to format path to the scripts properly.
perl_cmd = Escape.shell_command(['perl', "#{RAILS_ROOT}/bin/test_perl_script.pl"]).to_s
system perl_cmd
python_cmd = Escape.shell_command(['python', "#{RAILS_ROOT}/bin/test_python_script.py"]).to_s
system python_cmd
@rezurrector
rezurrector / README.md
Created December 9, 2019 04:44 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
@rezurrector
rezurrector / XORCipher.js
Created February 26, 2017 10:27 — forked from sukima/XORCipher.js
A Super simple encryption cipher using XOR and Base64 in JavaScript
// XORCipher - Super simple encryption using XOR and Base64
//
// Depends on [Underscore](http://underscorejs.org/).
//
// As a warning, this is **not** a secure encryption algorythm. It uses a very
// simplistic keystore and will be easy to crack.
//
// The Base64 algorythm is a modification of the one used in phpjs.org
// * http://phpjs.org/functions/base64_encode/
// * http://phpjs.org/functions/base64_decode/
@rezurrector
rezurrector / js-crypto-libraries.md
Created February 26, 2017 10:24 — forked from jo/js-crypto-libraries.md
List of JavaScript Crypto libraries.

JavaScript Crypto Libraries

I start with a list and plan to create a comparison table.

WebCryptoAPI

http://www.w3.org/TR/WebCryptoAPI/

This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.