Skip to content

Instantly share code, notes, and snippets.

View Pa6's full-sized avatar
💭
let fight for impossible

Pa6 Pa6

💭
let fight for impossible
  • Kigali, Rwanda
View GitHub Profile
@Pa6
Pa6 / index.html
Created March 24, 2023 11:24
Spin Wheel Using JS
<div id="chart"></div>
<div id="question"><h1></h1></div>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
@Pa6
Pa6 / openssl_encrypt_decrypt.php
Created December 6, 2018 16:11 — 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
*/