An Algorithm For Performing Encryption Or Decryption