PHP implementation of RNCryptor