Skip to content

Instantly share code, notes, and snippets.

@ydenissov
ydenissov / ChCrypto.java
Created March 24, 2023 10:49 — forked from jidolstar/ChCrypto.java
AES 256 encrypt / decrypt - JAVA, PHP, Kotlin
package chela.spring.core;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.util.Base64;
final public class ChCrypto {
final static Base64.Encoder encorder = Base64.getEncoder();
final static Base64.Decoder decorder = Base64.getDecoder();
@ydenissov
ydenissov / hits.php
Created October 20, 2017 03:24 — forked from Dmi3yy/hits.php
hits
//<?Hits % OnLogPageHit, OnBeforeDocFormSave, OnDocFormRender
if(!defined('MODX_BASE_PATH')){die('What are you doing? Get out of here!');}
/*
Hits 1.0.3 by Yurik Dertlyan | yurik@unix.am
update by Dmi3yy@gmail.com
Plugin for Evolution CMS to register and output page hits
Installation:
- SQL 'ALTER TABLE modx_site_content ADD COLUMN `hits` INT(10) UNSIGNED NOT NULL';
- Create plugin with name "Hits" and description "1.0.3"