Posted on 2006-11-17
im fairly new to cryptography, my aim is to write a program which can perform ceaser cypher on a input string and output the result in groups of 5 i.e. : kkkkk-jjjjj-lllll-mmmmm
as far as i understand i have to take letters from the input string and shift a certain amount of characters down the alphabet, which i can do. however im having difficulties understanding how i will output the results in groups of 5 if the string is less than 5 characters long.
im implementing it in java so i will be greatful for any examples