Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #28342

Re: String to Base76

Newsgroups comp.lang.javascript
Subject Re: String to Base76
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References (2 earlier) <mnh1dr$poi$1@dont-email.me> <XnsA4D0C5BD97734eejj99@194.109.6.166> <mnh3m4$3hu$1@dont-email.me> <XnsA4D0D8AB12379eejj99@194.109.6.166> <mnhede$f1b$1@dont-email.me>
Date 2015-07-08 00:17 +0200
Message-ID <XnsA4D12E5EC202eejj99@194.109.6.166> (permalink)

Show all headers | View raw


Wesley <dddudeman9@gmail.comREMOVETHIS> wrote on 07 Jul 2015 in 
comp.lang.javascript:

>> a multiplicaton would be:
>>
>> var a = '23QWds&[]';
>> var b = '[]]]99jJj';
>>
>> var result = to76( from76(a) * from76(b) );
>>
>> alert( 'a * b = ' + result );
>>
> 
> I was more thinking of using it as a basic text encryption. Not for 
> security, but for privacy from just stumbling upon the text. Instead you 
> would have to decrypt the string using the bot. I've used it in the past 
> with base64, but like I said, we want to be special snowflakes.

Then the already suggested a form of ROT76 would be a far better choice.

You could use this ROT13 as an example:

function rot13(s) {
  var x1 = 'ABCDEFGHIJKLM',
      x2 = 'NOPQRSTUVWXYZ',
      x = x1 + x2 + (x1 + x2).toLowerCase(),
      y = x2 + x1 + (x2 + x1).toLowerCase();
  return s.replace(
     /[A-Z]/ig, 
     function(c) {return x.charAt(y.indexOf(c));
  });
};

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

String to Base76 dddudeman <dddudeman9@gmail.com> - 2015-07-06 22:24 -0400
  Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-07 08:15 +0200
    Re: String to Base76 dddudeman <dddudeman9@gmail.com> - 2015-07-07 13:12 -0400
      Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 19:20 +0200
        Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 13:23 -0400
          Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 00:17 +0200
            Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-08 09:02 +0200
              Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 11:53 +0200
                Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-08 12:14 +0200
                Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 12:28 +0200
                Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-08 17:27 +0200
                Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 18:19 +0200
                Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-08 19:08 +0200
                Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-09 10:48 -0700
                Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-09 22:06 +0200
                Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-09 14:18 -0700
            Re: String to Base76 John Harris <niam@jghnorth.org.uk.invalid> - 2015-07-08 16:03 +0100
        Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-07 10:48 -0700
          Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 13:58 -0400
          Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 21:04 +0200
            Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-07 13:11 -0700
              Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 23:38 +0200
                Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-09 10:50 -0700
                Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-09 22:22 +0200
                Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-09 14:24 -0700
                Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-10 09:16 +0200
      Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 00:14 +0200
        Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 20:38 -0400
          Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 03:27 +0200
  Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 12:30 +0200
    Re: String to Base76 dddudeman <dddudeman9@gmail.com> - 2015-07-07 13:16 -0400
      Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 19:26 +0200
        Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 13:54 -0400
          Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-07 21:17 +0200
            Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 16:57 -0400
              Re: String to Base76 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-07-08 00:17 +0200
              Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 00:30 +0200
                Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 20:43 -0400
                Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 03:17 +0200
                Re: String to Base76 Wesley Navaille <dddudeman9@gmail.com> - 2015-07-07 22:01 -0400
                Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 12:05 +0200
                Re: String to Base76 Wesley Navaille <dddudeman9@gmail.com> - 2015-07-08 13:50 -0400
                Re: String to Base76 Scott Sauyet <scott.sauyet@gmail.com> - 2015-07-08 19:05 -0700
                Re: String to Base76 Wesley Navaille <dddudeman9@gmail.com> - 2015-07-08 22:17 -0400
          Re: String to Base76 Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-07-08 00:22 +0200
  Re: String to Base76 wolfgang zeidler <invalid@invalid.invalid> - 2015-07-07 20:02 +0200
    Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 14:08 -0400
      Re: String to Base76 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-07-07 12:01 -0700
    Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-07 13:05 -0700
      Re: String to Base76 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-07-07 13:24 -0700
        Re: String to Base76 Wesley <dddudeman9@gmail.comREMOVETHIS> - 2015-07-07 17:10 -0400
          Re: String to Base76 "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-07-07 14:53 -0700
      Re: String to Base76 wolfgang zeidler <invalid@invalid.invalid> - 2015-07-07 23:46 +0200
        Re: String to Base76 Gene Wirchenko <genew@telus.net> - 2015-07-07 15:21 -0700

csiph-web