Skip to main content
added 38 characters in body; edited tags; edited title
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

Rot -n algorithm in java -- Code optimization?Java

This is a rot-n (rotate n times) encrypt/decrypt algorithm, where n can be any integer (+/-).

It's written to encrypt/decrypt all the alphabets (upper/lower case) and leaving behind all non-alphas.

rot-n where n is the key, is given in the first line of input file.

Everything is working fine. I just need help in optimizing it.

Challenge description

Your submission will be tested against an input file that contains ASCII characters. The input file starts at the very first line with a N-digits positive or negative integer number that is your cipher, followed by a new-line character. The second line starts with the payload of the encrypted text until the end of file. Note that only words (alphanumeric sequences) are encrypted and that every other character (i.e. punctuation) must not be processed by your algorithm and must also be copied ‘as is’ to the standard output.*

It's and rot-n(rotate n times) encrypt/decrypt algorithm where n can be any integer(+/-) It's written to encrypt/decrypt all the alphabets (Upper/lower case) and leaving behind all non-alpha's

rot-n where n is the key, is given in the first line of input file.

Everything working fine, Need help in optimizing it.

FYI, Puzzles description is

Your submission will be tested against an input file that contains ASCII characters. The input file starts at the very first line with a N-digits positive or negative integer number that is your cipher, followed by a new-line character. The second line starts with the payload of the encrypted text until the end of file. Note that only words (alphanumeric sequences) are encrypted and that every other character (i.e. punctuation) must not be processed by your algorithm and must also be copied ‘as is’ to the standard output.

Rot -n algorithm in java -- Code optimization?

It's and rot-n(rotate n times) encrypt/decrypt algorithm where n can be any integer(+/-) It's written to encrypt/decrypt all the alphabets (Upper/lower case) and leaving behind all non-alpha's

rot-n where n is the key, is given in the first line of input file.

Everything working fine, Need help in optimizing it.

FYI, Puzzles description is

Your submission will be tested against an input file that contains ASCII characters. The input file starts at the very first line with a N-digits positive or negative integer number that is your cipher, followed by a new-line character. The second line starts with the payload of the encrypted text until the end of file. Note that only words (alphanumeric sequences) are encrypted and that every other character (i.e. punctuation) must not be processed by your algorithm and must also be copied ‘as is’ to the standard output.

Rot -n algorithm in Java

This is a rot-n (rotate n times) encrypt/decrypt algorithm, where n can be any integer (+/-).

It's written to encrypt/decrypt all the alphabets (upper/lower case) and leaving behind all non-alphas.

rot-n where n is the key, is given in the first line of input file.

Everything is working fine. I just need help in optimizing it.

Challenge description

Your submission will be tested against an input file that contains ASCII characters. The input file starts at the very first line with a N-digits positive or negative integer number that is your cipher, followed by a new-line character. The second line starts with the payload of the encrypted text until the end of file. Note that only words (alphanumeric sequences) are encrypted and that every other character (i.e. punctuation) must not be processed by your algorithm and must also be copied ‘as is’ to the standard output.*

Tweeted twitter.com/#!/StackCodeReview/status/153889959495999489
added 568 characters in body
Source Link
cypronmaya
  • 479
  • 6
  • 13

rot-n where n is the key, is given in the first line of input file.

Everything working fine, Need help in optimizing it.

FYI, Puzzles description is

Your submission will be tested against an input file that contains ASCII characters. The input file starts at the very first line with a N-digits positive or negative integer number that is your cipher, followed by a new-line character. The second line starts with the payload of the encrypted text until the end of file. Note that only words (alphanumeric sequences) are encrypted and that every other character (i.e. punctuation) must not be processed by your algorithm and must also be copied ‘as is’ to the standard output.

rot-n where n is the key, is given in the first line of input file

Everything working fine, Need help in optimizing it

rot-n where n is the key, is given in the first line of input file.

Everything working fine, Need help in optimizing it.

FYI, Puzzles description is

Your submission will be tested against an input file that contains ASCII characters. The input file starts at the very first line with a N-digits positive or negative integer number that is your cipher, followed by a new-line character. The second line starts with the payload of the encrypted text until the end of file. Note that only words (alphanumeric sequences) are encrypted and that every other character (i.e. punctuation) must not be processed by your algorithm and must also be copied ‘as is’ to the standard output.

added 16 characters in body
Source Link
cypronmaya
  • 479
  • 6
  • 13

It's and rot-n(rotate n times) encrypt/decrypt algorithm where n can be any integer(+/-) It's written to encrypt/decrypt all the alphabets (Upper/lower case) and leaving behind all non-alpha's

It's and rot-n encrypt/decrypt algorithm where n can be any integer(+/-) It's written to encrypt/decrypt all the alphabets (Upper/lower case) and leaving behind all non-alpha's

It's and rot-n(rotate n times) encrypt/decrypt algorithm where n can be any integer(+/-) It's written to encrypt/decrypt all the alphabets (Upper/lower case) and leaving behind all non-alpha's

added 71 characters in body
Source Link
cypronmaya
  • 479
  • 6
  • 13
Loading
added 71 characters in body
Source Link
cypronmaya
  • 479
  • 6
  • 13
Loading
Source Link
cypronmaya
  • 479
  • 6
  • 13
Loading