It looks like you're using an Ad Blocker.
Please white-list or disable AboveTopSecret.com in your ad-blocking tool.
Thank you.
Some features of ATS will be disabled while you continue to use an ad-blocker.
int x;
int y = 0;
// Encrypted the text
for(x = 0; x < encrypt_text_length; x++)
[
// if the current character is a space reset the offset to zero
// otherwise add one to the offset
if(buff[x] == ' ')
[
y = 0;
]
else
[
y++;
]
buff[x] = ShiftCharacter(buff[x],shift_value,y);
]