Completed Encrypt/Decrypt Functions