• 0 Posts
  • 112 Comments
Joined 2 years ago
cake
Cake day: June 9th, 2023

help-circle

  • If you’re coding or whatever this is fine.

    I want coders to learn from trusted sources too. How do you authorize a user and store the password (plain text, hash, encrypt)? Do you use MD5 or SHA-256? (Always hash passwords, don’t use MD5)

    If you have to encrypt some information, do you use AES or Triple DES ? (never Triple DES)

    When authorizing with OAuth, should one send the auth url, client id, client secret, scopes, and redirect url to the client machine? (yes, yes, no, yes, yes)


    These are basic questions with answers that are easy to find…and many programmers get them very, very wrong. Mostly out of carelessness, often the question itself doesn’t even pop into their head.

    Relavent XKCD


  • The gold standard is providing something you know (a password) alongside something you have (an OTP or fingerprint). This is two-factor auth in a nutshell.

    using your face, fingerprint, or PIN

    You leave fingerprints and images of your face everywhere you go; and in the case of someone spoofing those, there is zero way to change either. Such public information is not the foundations of a secure system.

    And a PIN is just a shorter, shittier password. Why the hell would we replace a normal password with the least secure, most shitty version of a password?












  • BombOmOm@lemmy.worldtoTechnology@lemmy.worldZink is Zero Ink — Sort Of
    link
    fedilink
    English
    arrow-up
    13
    arrow-down
    1
    ·
    1 month ago

    My first thought was: why have I never heard of this? The answer seems to be: 2" x 3" photo paper costs $0.41/ea.

    Mail-order professional photo prints are quite a bit cheaper than that. So, the main thing this contends with is other instant photo creation methods. Which are pretty niche ever since digital cameras became good.





  • In addition to what the other guy said, Mint is also more focused on desktop. A bunch of apps are pre-installed that one would expect on a desktop OS. Additionally, the default Mint UI, Cinnamon, feels very familiar to a Windows user. It has a start menu, task bar, tray, etc.

    Debian is in the same family, and is more oriented for servers. It is super minimal out of the box, which is perfect when you want it to sit in the other room and perform specific tasks. However, you can install all the same programs, even the Cinnamon UI on Debian.

    Really the difference is the out of box experience, but they are otherwise pretty similar.



  • BombOmOm@lemmy.worldtoTechnology@lemmy.world*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    22
    ·
    edit-2
    1 month ago

    Writing code is easier than understanding and reviewing another’s code. There is good reason code reviewers aren’t the interns and new hires.

    My question to others is, why would you want to turn into a code reviewer for AI code? It’s a shitload harder. And if the goal is anything but a weekend project, you damn well better be understanding and reviewing it critically, otherwise one is shitting up the code base and forcing others to clean up your mess.