Skip to content

Instantly share code, notes, and snippets.

View rudemex's full-sized avatar
👨‍💻

Mex Delgado rudemex

👨‍💻
View GitHub Profile
@rudemex
rudemex / openssl_encrypt_decrypt.php
Created September 12, 2017 01:56 — forked from joashp/openssl_encrypt_decrypt.php
Simple PHP encrypt and decrypt using OpenSSL
<?php
/**
* simple method to encrypt or decrypt a plain text string
* initialization vector(IV) has to be the same when encrypting and decrypting
*
* @param string $action: can be 'encrypt' or 'decrypt'
* @param string $string: string to encrypt or decrypt
*
* @return string
*/
@rudemex
rudemex / index.html
Created December 4, 2012 14:08 — forked from dhavaln/index.html
Include Phonegap/Cordova JS based on the Device
<!DOCTYPE HTML>
<html>
<!DOCTYPE HTML>
<head>
<meta name="viewport" content="width=320; user-scalable=no" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>PhoneGap Test</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.css" >
<script type="text/javascript" charset="utf-8"