Go implementation of RNCryptor