• Caesar cypher function

    This is the same function as cypherCaesar, but it is implemented using the generalized core function substitutionCore. It is provided for consistency and to demonstrate how the core function can be used for different types of substitution ciphers.

    Parameters

    • aStr: string

      the string to cypher

    • anOffset: number

      the rotation to apply

    Returns string

    the cyphered string