Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static public String decrypt(String inputString) {
- var length = /* how many characters in the input string? */
- var sb = new StringBuffer(length);
- sb.setLength(length);
- var m = /* length of the first section */
- var offset = /* start of the first section */;
- var distance = /* how far away are the chars to be put? */;
- while (/* is there still work to be done */) {
- var substr = /* get the section for this run */
- var x = /* first index of an empty index in sb */
- for (/* each char in this section */) {
- char chr = /* the character */
- sb.setCharAt(/* ??? */);
- x += distance;
- }
- /* update these values:
- distance
- offset
- m
- */
- }
- return sb.toString();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement