Pure Programmer
Blue Matrix


Cluster Map

Project: Caesar Cipher

The [[Caesar Cipher]] is one of the oldest and simplest encryption techniques known. Write a filter program that encrypts or decrypts text using a Caesar Cipher. It should only shift alphabetic characters taking into account that uppercase characters should shift to other uppercase characters and lowercase characters should shift to other lowercase characters.

The program should accept two command line arguments. The first is the shift amount (0-25) and the second is the encrypt/decrypt mode. If the second argument is "e", the program should take in clear (unencrypted) text on the standard input and write cipher (encrypted) text on the standard output. If the second argument is "d", the program should take in cipher (encrypted) text on the standard input and write clear (unencrypted) text on the standard output.

Output
$ swiftc CaesarCipher1.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution