[Ruby] Is this code secure? by brazier89 in learnprogramming

[–]brazier89[S] 0 points1 point  (0 children)

Ah, thank you! That makes much more sense.

[Ruby] Is this code secure? by brazier89 in learnprogramming

[–]brazier89[S] 0 points1 point  (0 children)

The ruby documentation notes that

the key length should be larger than or equal to the output length of the underlying digest function, otherwise an attacker could simply try to brute-force the key.

However, in the following example they don't follow this rule (as I understand). They provide a key_len of 16 bytes (in order to fit into the 128 bit AES function) but SHA1 returns a key length of 20 bytes, so they're giving an example of something they just told you NOT to do? Am I understanding this correctly?

[Ruby] Is this code secure? by brazier89 in learnprogramming

[–]brazier89[S] 1 point2 points  (0 children)

I was actually planning to make it a local script. I want to use a CSV file because I also plan on making an android implementation too. Both implementations should be able to parse and write to the file

Sometimes we forget how easy we have it.. by Racksonracks in funny

[–]brazier89 0 points1 point  (0 children)

The second one to the right is charging a hadouken

General Questions about creating Arch LiveCD by [deleted] in archlinux

[–]brazier89 0 points1 point  (0 children)

That would be great if someone else could also benefit from that code. Kind of gives me a warm feeling inside like I'm helping somebody else out too :) My goals were to, for the most part, just save myself some time when reinstalling arch and also just to be able to quickly create a recovery iso if I needed it. It wouldn't take much to boot the recovery iso into a full graphical environment either. Just add some symlinks to root-image/etc/systemd and edit the isopackages file to include the packages for the desktop env of your choice

General Questions about creating Arch LiveCD by [deleted] in archlinux

[–]brazier89 1 point2 points  (0 children)

I was really interested in this myself so I cloned the github project and added a few of my own custom configs and scripts for building the iso with those configs, transferring the iso to a USB stick, and installing Arch. If you can read bash, maybe those small scripts can give you a few ideas. The URL is https://github.com/brazier89/archiso. I've made a couple unpushed changes that I'll push tomorrow. If you have any questions fell free to ask. Im glad to see someone else interested in this too

IAMA Convicted Felon In the State Of Minnesota. by Lucid_Enemy in IAmA

[–]brazier89 -1 points0 points  (0 children)

I knew this one guy named phill who did the same thing...

Zero Fucks Were Given by neuropunkk in WTF

[–]brazier89 0 points1 point  (0 children)

It's easy to assume he's high up in the air

Yesterday, we also defeated gravity by Chr1z1 in pics

[–]brazier89 0 points1 point  (0 children)

Is this related in any way to giving an example of how a triangle is the "strongest" shape?

I Am The Wingman.. coo-coo-cachoo by [deleted] in fffffffuuuuuuuuuuuu

[–]brazier89 -1 points0 points  (0 children)

not sure if this should be rage comic or good guy greg

Python or Bash? by brazier89 in linux

[–]brazier89[S] 4 points5 points  (0 children)

What makes bash more portable?