Ruby encryptor made in class