In my 'baes' :) project I am struggling with Galois Fields and get field-exceeding values properly calculated.
I am home now and suddenly it struck me that probably the solution can be (note-to-self):
After multiplication with the irreducible polynomial, use a mask and a bitwise AND to keep only the lower 7 bits of the final result value.
I.e.:
value=0xA3F
mask=0x7F
result=$(( value & mask ))
So then the result will become: 0b00111111
Hopefully this will work...
The substitution box, one of the steps in key scheduling for the Rijndael cipher, is working.
The table is in hexadecimal, therefore some sub-optimal conversion is going on. But it works for now.
Still far away from fully working, but I am still making good progress each time I work on this project.
Next up: bitwise row and column shifting.
Steadily on my way builing an Rijndael-esque encryptor.
Building upon my #xor shell script; yesterday I made an 256 bits sustitution table.
Today I made the foundation of a key scheduler. Interestingly bash is able to process 4×4, 6×4 or 8×4 matrices. And the code is still quite simple. I am learning a lot and enjoying all the little puzzles to solve!
Follow my progress on #codeberg.
https://codeberg.org/oxo/tool/src/branch/main/dev/aes
#linux #bash #shell #script #aes #rijndael #encryption
Duck.ai is not able to generate a complete substitution matrix from the Rijndael cipher. It starts off promising, but then gets stuck about halfway. I asked it to generate the table from the halfway point and it did. But it made up the values it produced. #stupidai
@infobeautiful
Looking inside out. Cool!
@Codeberg
Based upon the messages I read; It seems like you are under attack often and for a long time already. Any idea who is your opponent and why!? Or is this the nominal environment?
Thank you so much for keeping up my repo!👌
The #base64 command has a wrap option. If it is set to 0 then you basically have created a base64 stream (without any EOL's). Which comes in handy for my #xor project.
Development btw is published when I have internet connection;
https://codeberg.org/oxo/tool/src/branch/main/dev/aes
Enjoy your day!
#linux #commandline #script
@cisene Vackert! 😃
@fraggle
alias cat='cat -vET'
makes all non-printable characters visible
I realized that #encryption is not easy. Adjusted my goal from building a full blown Rijndael #cipher to a more simple xor block cipher. For educational purposes only!
Now I am more or less ready with the #base64 encoding of the input (#plaintext and #key), conversion to #ASCII #hex and then creating #binary codes. Then the plaintext has to be split into 16 byte blocks, which are to be #xor-ed with the key.
Todo: key-rotation, to make the algorithm stronger.
Today I learned: all the above. But especially how valuable base64 encoding is for converting non-ASCII characters.
Okay, I now want to write the Rijndael algorithm (AES) in bash.
Is that even possible?
Any suggestions appreciated!
Wish me luck. 😃
#bash #aes #symmetric #encrypton #algorithm
isolatest, the tool to download an up-to-date archiso has been moved to hajime, the archlinux installation tool.
Please update your local repos and have a nice day!
#isolatest #archlinux #hajime #linux #installation
https://codeberg.org/oxo/hajime/src/branch/main/prep
The Emacs Writing Studio paperback version is out now. Available through your favourite book retailer.
Emacs Writing Studio is a configuration that converts Emacs into a too for research, note-taking, writing and publishing books.
This paperback was fully produced with Emacs, except for the cover.
The configuration and Org mode files are freely available on GitHub:
passr is the password-store wrapper I developed and use on a daily basis.
Today I improved the autoentry function with an audible cue, customizable fields and input duration.
Adding ``aeseq: url:5 userid:5 password:5`` to your pass-file will wait 5 seconds until the next field value.
passr also says (with e-speak) which field value is loaded.
Works pretty cool!
#linux #bash #script #pass #passr #password #manager
https://codeberg.org/oxo/tool/src/branch/main/passr
@abcdw
@abcdw
For me center body alignment is critical; so when using a mouse I place it in the middle of my split keyboard.
I think only technical solutions will not solve your problem.
Many usage philosophies don't want the hands off the keyboard and instead keep the hands in a fixated position as much as possible. This is no natural behaviour for the body, which is build to move. Try to at least find a middle ground regarding these philosophies.
Feel your body and differentiate between micro movements (i.e. mouse), typing and bigger macro movement involving other work when stress gets to a certain level.
Make a habit of stretching and do weight and or resistance training regularly. Last tip: the book Desk Bound by Kelly Starrett.
https://thereadystate.com/product/deskbound-standing-up-to-a-sitting-world/
I hope you can redice your pain. Good luck!
@tuxedocomputers
Awesome! Does it come with an US keyboard layout (horizontal enter key)?
Need some password inspiration?
https://yewtu.be/watch?v=o3nBbvfdwkI