VB NET - How To Hash And Salt A Password For An SQL Server with Login

Поделиться
HTML-код
  • Опубликовано: 1 янв 2025

Комментарии • 34

  • @ALonelyWinter
    @ALonelyWinter 7 лет назад +4

    Thanks Andrew, this really good,, is it possible to make the same video in c#

  • @ReelsFacts2024
    @ReelsFacts2024 6 лет назад +2

    Hi, cant find your link on youtube how to decrypt hashedandsalted password. thanks

  • @Kramblueify
    @Kramblueify 2 года назад

    Nice tutorial Andrew, thanks for this.
    Would be "nicer" though if you provided a link to the code instead of us having to type all of this up ourselves ? :)

  • @clarkadam2832
    @clarkadam2832 5 лет назад +2

    play back speed to 0.75... your'e welcome

  • @darius8171
    @darius8171 7 лет назад +3

    Hey, nice tutorial, but could you make it in c# ?

    • @ANdR3WISCOOL
      @ANdR3WISCOOL  7 лет назад +3

      +Darius sorry for the late reply, I certainly could, however it shouldn't be too difficult to translate from this video in to c#

    • @oghidden
      @oghidden 7 лет назад +3

      using System;
      using System.Text;
      using System.Security.Cryptography;
      namespace DataEntry
      {
      class Encryption
      {
      RNGCryptoServiceProvider cryptose = new RNGCryptoServiceProvider();
      private string EncryptString(string str)
      {
      byte[] bytres = Encoding.ASCII.GetBytes(str);
      var hashed = System.Security.Cryptography.SHA256.Create().ComputeHash(bytres);
      return Convert.ToBase64String(hashed);
      }
      public string GenerateSalt(string str)
      {
      using (RNGCryptoServiceProvider CryptoServerProvider = new RNGCryptoServiceProvider())
      {
      StringBuilder sb = new StringBuilder();
      byte[] data = new byte[] { 4 };
      for(int i = 0; i < 6; i++)
      {
      CryptoServerProvider.GetBytes(data);
      string value = BitConverter.ToString(data, 0);
      sb.Append(value);
      return EncryptString(sb.ToString());
      }
      return "N/A";
      }
      }
      public string HashString(string str)
      {
      return EncryptString(str);
      }
      }
      }

  • @binaryplayer
    @binaryplayer 4 года назад

    how would i do the connection string?

  • @RajnishDubey1988
    @RajnishDubey1988 5 лет назад

    Good One Andrew.

  • @alejandrohernandez1720
    @alejandrohernandez1720 5 лет назад +1

    6:13

  • @larrymayers1285
    @larrymayers1285 6 лет назад

    Thanks man...Excellent video!

    • @ANdR3WISCOOL
      @ANdR3WISCOOL  6 лет назад

      Larry Mayers no worries uncle

    • @larrymayers1285
      @larrymayers1285 6 лет назад

      any chance you recommend any resources for an up and coming .NET developer? VB or C#...either way

    • @ANdR3WISCOOL
      @ANdR3WISCOOL  6 лет назад

      Larry Mayers the visual c# step by step books are pretty good :)

    • @larrymayers1285
      @larrymayers1285 6 лет назад

      Cool...I'll continue watching your channel and pick up a few books! Thanks again.

    • @ANdR3WISCOOL
      @ANdR3WISCOOL  6 лет назад

      Larry Mayers no worries mate, all the best!

  • @lerkaissushe2713
    @lerkaissushe2713 6 лет назад

    A tutorial would be nice of using already made hashes and salts and then coding them into visual basic. Basically... What I mean. I am using a forum software called MyBB and want to create a user login system. The database was created automatically and the hash and salt generated automatically as well. I'm following the tutorial however it's confusing because you are inserting data into the database. I need to generate a new hash of the user's password and salt and see if the results match. Following the tutorial is good but will not do what I want it to do.

  •  6 лет назад

    Thank you soo much! Great video! But, how to dencrypt the salt and pass hash? So when my user want to login...

    • @ANdR3WISCOOL
      @ANdR3WISCOOL  6 лет назад

      Follow the video

    •  6 лет назад

      Coding With Andrew Yeah, sorry i found it, but after the comment. Thanks again for your help!

  • @DarkSolidity
    @DarkSolidity 5 лет назад

    Awesome Video man! I'm trying to make it work for a form application instead of a console application and I've got about 90% of it working the only issue I'm running into is the login function. On Inserting User the Salt is generated and Password is Hashed without any problem but when running the login it its not matching the password hash and instead seem to generate a new hashed password and returning password is incorrect any help would be greatly appreciated as I am new to salted and hashed passwords

    • @DarkSolidity
      @DarkSolidity 5 лет назад

      Never mind figured it out. Works perfect. It was really simple making this work for a form based application

  • @techzee5804
    @techzee5804 6 лет назад +1

    Great video, but you didn't tell us how connectionstring is created

    • @ANdR3WISCOOL
      @ANdR3WISCOOL  6 лет назад +1

      hey mate, I didnt show the connection string because i was accessing it over the internet and didnt wanna show my ip address, however if you look at some of the previous videos, I talk about connection strings there. I hope that helps.

    • @suhadahusin8680
      @suhadahusin8680 6 лет назад

      sorry, which video?

  • @revlmp727
    @revlmp727 6 лет назад

    HOW I HASH IN SQL DEVELOPER

  • @macbagie
    @macbagie 3 года назад

    great tutorial, can you send the source code to me?
    or share it using google drive? much appreciated, thank you!

    • @ANdR3WISCOOL
      @ANdR3WISCOOL  3 года назад

      Sorry man, I unfortunately don’t :(

  • @NabranAboubacar
    @NabranAboubacar 4 года назад

    Nice explained
    But dude you are literally killing thoses keys 😅
    Whatch out your fingers

    • @ANdR3WISCOOL
      @ANdR3WISCOOL  4 года назад +2

      Sorry man, I don’t have that keyboard anymore 😎 so we’re all good

  • @MuhammadNaseer
    @MuhammadNaseer 6 лет назад +1

    man get a quiet keyboard... :) Great video though.

    • @WayneBarroncffcs
      @WayneBarroncffcs 3 года назад

      I can deal with the noisy keyboard, it is the bad echo from the mic that is giving me a headache.