Implementation of crypto algorithm SHUP("ШУП", русский).
University task.