An Algorithm For Performing Encryption