Code for importing to main for encryption