Skip to content

Instantly share code, notes, and snippets.

@beshoo
beshoo / utf8-arabic-ci.md
Created May 2, 2021 02:30 — forked from TheAhmedGad/utf8-arabic-ci.md
Add Arabic utf8 arabic ci Collation to MYSQL ENGINE

Support Arabic CI Collation

To make mysql understand Arabic letters synonyms like "أ" and "إ"

  • Run This to get Collation Path SHOW VARIABLES LIKE 'character_sets_dir';

  • in /collation/path/Index.xml add this to <charset name="utf8"> section

@beshoo
beshoo / Encryption.js
Created June 2, 2019 21:58 — forked from ve3/Encryption.js
Encrypt and decrypt between programming languages (PHP & JavaScript).
/**
* Encryption class for encrypt/decrypt that works between programming languages.
*
* @author Vee Winch.
* @link https://stackoverflow.com/questions/41222162/encrypt-in-php-openssl-and-decrypt-in-javascript-cryptojs Reference.
* @link https://github.com/brix/crypto-js/releases crypto-js.js can be download from here.
*/
class Encryption {