BITWISEBASE64BITWISEBASE64BITWISEBASE64BITWISE

From Esolang
Jump to navigation Jump to search

BITWISEBASE64BITWISEBASE64BITWISEBASE64BITWISE is an esoteric programming language with understandable syntax. At least, BEFORE it gets encrypted hella hard. the steps to encrypt any given unprocessed program goes as follows:

  • Get the program
  • Open cryptii
  • Use bitwise operation NXOR on string with repeating operand b as the hex byte "df"
    • Turns out this flips the case.
  • Use Base64
  • Use bitwise operation AND on string with repeating operand b as the hex byte "fe"
    • By now, a single lowercase d becomes R@<<
  • Use Base64
  • Use bitwise operation OR on string with repeating operand b as the hex byte "c0"
    • I cannot display this as text.
  • Use Base64
  • Use bitwise operation XOR on string with repeating operand b as the hex byte "7e"
    • By now, a lowercase d becomes O��<U0:<Q�NC

Then, to prevent syntax errors:

  • Replace all "s with p's
  • Replace all 's with q's
  • Replace all ='s with o's
  • Replace all ]'s with e's

Ya, all that for ONE PROGRAM. So that you can see how nasty it gets:

Test

Becomes:

L
&-OG�9L
6/�.�G

And for your program to run, it HAS TO BE THIS WAY!!! (hooray for obfuscation)

Unprocessed syntax/commands

Note: following syntax not processed

Commands
Command Function
Print["string" Prints the string
Printn["string" Prints a string without newlines
Newline Prints a newline
Printv[var Print var's value
Printvn[var Print var's value without newlines
Define[name,initial value Define a variable called name
Input[prompt,name Asks for input and store into variable called name
Arith[operation,{operands},into Does operation to values in {operands} and store into the variable named into, if the var used already exists, change value
While{value, value, condition}[ While loop, does while value is condition to value (i.e. While{1,1,==} checks for 1 == 1)
For{tempname, start, stop, step}[ For loop, var used to loop is temp name, go up by step (if step not given, step = 1)
If{value, value, condition}[ If statement, does if value is condition to value (i.e. While{2,2,==} checks for 2 == 2)
]Elseif{value, value, condition}[ Elseif if initial condition not met, same stuff
] Closes off all commands

The only unprocessed command is a comment, marked by doing =* (begin comment) and *= (end comment)

The list of usable conditionals are: == (equals), >, <, >=, <=, != (not equal) The list of usable operations are: +,-,*,/,% (mod), ^ (exponent), !^ (root), ! (factorial), !/ (reciporcal), >. (convert to decimal for up to 20 digits), >/ (convert to fraction if possible), #R (to Roman numerals), #A (to Arabic numerals), #BB (to binary), #BO (to base 8), #BD (to decimal), #BH (to hexadecimal),

   #B# (to base #2)

The hard part

The encryption, just look at this hello world program:

O
&��G.
N�.(H
�<N�&	G�&
N�*+�
2�N��5O�M8F3M(HF28N��	G�M;GQNC

Yea.

And that was doing the steps from this:

print[ "Hello World!"
]

Other programs

Note: Trying to copy these programs dont work due to technical reasons. the wiki will change characters to a �.

Truth Machine

L��,F0&9L
�(H
��J
���G2
L
6+�
�(�
�oI�&�	��(I��	NU�-I�*
�
&,H
2�OF��U�.6N�����:(N
��H�29	�2(HG2:���-L��7���)���2NU�-FG&�G���HU�*N���GFQ8F.&0�32
O�IoN��6F..+I0�4JU�5��68H.��I36JN36GQ/CC

Cat

L��,F0&9L
�(H
��O
*-���9���.��:�N��5NG�;N
&)I�&	O1M�N�:;GQNC

Fizz Buzz

Oh my god, this is so long!!!!

OU�-OG2
�
&1������&ON��
N�:)�
�&NF&J��&�	�**I�&�NF�5O�&8L
�0��&,O��,F0�9�
�*���8J��-N�28��*��G2NJF��O�6
U0&(HU�KN��-�U*8N
&0�
�.O��-OG&�N
.+I�28N
*oO�.
G.�����&NU�	OG26KQ2,I32NL��<GFQ9L
&��
�6O
��F
�
H06���&6O�I<G0.
U3�(I3�&O���HU*
N
M)H
2.O���O�I9N
.)HU�0N
�5OG�8N
&0�
�6O�I<G0.
U..-I0�M���5�G&7L
6-���ML
��L�.�	��-HQ:2O
�JNFI�	�.&HQ:&J
�oIG�
L��$��2�JF*��U2�	�.)���.N��5O��
�
&(I020N
&oF
�8H0�0�0�2J��5NG&
N�:)�G2�NUM�OG��	��,�U�M�F&	G�M6U0&-HQ&6O��-J��
N
.+���8N���HG.9L��1HQ:ON��5NG�;N
&��0�2J
�5OU.6	
6��36NNUMNGU29N
�+HG�*O
�	H�29	�2(HG2:���-L��7���$HG�2NU�-FG&
L��0��&,O��,F0�9�
�*�32
O�IoIG�6F..)�
�4JU�J��2��
.-��2.O���O�I9N
.)HQ:�N
&-�G&9L
&1�
2*O���GG�
���.��:O��*MQ/CC

Ok that was actually a lot...

99 Bottles of beer

This is just that again but different, also, I ran out of bottles and it prints "1 bottles of beer"

OU�-OG2
�
&1������&	N���L
.+�
�&O3&J�G&
F.��I3�M���5��28U0.)I
2:O
*oNG�9N
&)I028N��o��.6GQ�1HQ:ON��5NG�;N
&)I�Q	���oF�Q9N
�-�1�6O
��GFQ8F.&,I3�*O
*-O��7L
���
6MO��-O�29L
&,��6NN��o��.�L
.)HU�<O
*<F069L
&����<N�M-	G�8N�2,HQ:O���oH�2�F3�)�Q�*O��-G�*8� =* XFGyQT5612 is my favorite string btw!!1! *=
&0�
�(O
&-OG�8F.&0�32�N��	�G�6U0.1HF2�NU�oOG2
�
M(I0�0N��,GG�8	
6�I0�6O
����.6L
.��0�(J�MJ�G��H.�,I�28N��JNG&8�
6)�Q:(N��oOG.
	
�)�028N���GFQ8F.&,I3�*O
*-O��7L
��I32&O1�-	�26U0&,��26O��,GG��G�.,I
6NNUMJ�G&
�
�(HU��K1�o����	
�(�
�6O��JNG��U3M-�
�MO3�oF�Q9N
�-�1�6O
��GFQ8F.&0�.�G

Add two numbers

L��,F0&9L
�(H
�(J
���G29	�*,HQ:O���oKG�;N
6)I0�*���-FG��G�&�I��:NUMNGU.9H0�*HQ:&N
��F
6�L�*$I02�O��O��&7H3Q)I06MO���N�&9N
�)�32ML��5GU*
N�6���&&N���F
�;	
�+HQ:O��*MQ/CC

Prints a vertical line made of these filled box thingys

kinda pointless

OUM�G0&
L���HQ�8O���NG28�
.��G2NJF��O�6
U3Q)HU��N�I-G�67	�M(I
6N

Box of characters

L��,F0&9L
�(H
�&���J����N�M+�
�NJF*��U26U3Q)���&O
�,GU68L
.)�G24O��oG0.8F.&0�32�O
*-N��
L
.1I36MJ�&5O���H3&*I�*MJF�	F�Q9�
�0�Q:0N
�oG0.9H0��I
2�J���NG��	�&+��2,K���L��7���$HG�2NU�-FG&
L
&�I
28L��5GFQ8F..1���&�����G�6F0&��G�,N3*MQ/CC

Powers of 2, hopefully

OU�-OG2
�
&1�������		G�8	�2(HQ:O���oJ�29L
�(I06	N�M,GG*
	
�)�02(N
&5��.6L
.��3�*N
�J��&
L��(HG2:N
&J��&�	����1�MK1�-F�28G��-I1Q�O�M	�G*8F.&0�32$O��	�G��N�Q1I��
K��5����H3&)�32&O1���FM8U0��HG�0L��5GFQ8F..-I3�*O��5���7L��+�
�NN
&JN�M;H0�)�Q�*L
&-��*
	
�)�02(L��5GFQ8F.&0�.�G

Powers of N

OU�-OG2
�
&1�������		G�8	�2(HQ:O���oJ�29L
�(I06	N�M,GG*
	
�)�02(N
&5��.6L
.��32(J
&5OG��H.:��
2&O1���G��H3.(�
�.N��	G�M7	��0�U�2O
&-OG��N
6�I3�8N��oHG�9H.���F�6NU�	O�29�
���32�N��-	U.;H3�����*O���NG.6N��1���&��MJ�G�8L
�)��28O1�oOG�;N
&&�
2NO��oO�&;H3��H
2MOF���G.
L
&��0�:K1I�H�29	�*-�
6MO��OOG2�	
M(�36NO��-FG&�H3��H
2ML��<U0:<Q�NC

Number to Base N

L��,F0&9L
�(H
��J
���G&6F0�(HG2<N�I-�U2�	��$�
6	O���OG&�L
��HG�(O��=F
69H.&0�32$O��	�G��N�Q1HF6KNF&-��2�N�:)I06MN��5OG.8U36-HQ::O
*=OG�8N
6,I��2J��=GG��L
�*I02�O���HFM�H.��I36JN36GQ/CC

Factorial

L��,F0&9L
�(H
��J
���G&6F0�(HG2<N�I-�U2�	��&�
�2NU����6;L
6(�1��L�MMGG*9H0&1�
2&����NG.
G.���F�6NU�	O�29�
���3�6O1�,GG�8L
&��36N