Basic Encryption And Decryption In Java #40

Поділитися
Вставка
  • Опубліковано 14 січ 2025

КОМЕНТАРІ • 160

  • @alexlorenlee
    @alexlorenlee  Рік тому +3

    If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h

  • @NavyCrack1
    @NavyCrack1 4 роки тому +25

    Hello Alex, I haven't seen anybody who can explain so simple so good to understand Java as you. God bless you.
    Greetings from Albania.

  • @chrisk.9469
    @chrisk.9469 4 роки тому +14

    Honestly these are rlly cool, if we could do a mini series abt encryption id love it

  • @michaeltheisen
    @michaeltheisen Рік тому +3

    Hey Alex I started watching your videos to help me understand how to code Java when I first started my classes. Lo and behold, here you are helping me again in my Cryptography class. I graduate next month! Thank you for helping me get this far.

  • @oluwatobilobaodebo6992
    @oluwatobilobaodebo6992 4 роки тому +43

    Final Exam Tomorrow, Thanks for the help throughout the semester Professor Lee!

  • @statxs
    @statxs 4 роки тому +1

    I've been watching your tutorials from like 2 years ago and i finally stumbled upon a recent one! Thanks for all the hard work.

  • @woolly9468
    @woolly9468 4 роки тому +23

    Alex: "Let's say the message is, 'hey, hows it hanging?'"
    Me: *puts "its the Russians"*

  • @TomJamesM
    @TomJamesM 4 роки тому +22

    This was part of my assignment for my first year of uni. You made it sound so easy. Thanks! :)

  • @JustPassingByHere
    @JustPassingByHere 4 роки тому +5

    Amazing work Alex keep it up you motivate me to keep working at this stuff!

  • @dyln1k
    @dyln1k 4 роки тому +1

    I have my AP comp sci test tomorrow and your vids are really helping me, thanks!!

  • @shehzadadeel32
    @shehzadadeel32 2 роки тому

    After searching for 3 days (few hours per day) I came across this video. I wish you could understand the happiness I am feeling right now after seeing your video. You are the best...!!! Thanks for your videos. keep it up.

  • @kris_jnr_electrical
    @kris_jnr_electrical 3 місяці тому

    THIS IS THE BEST ENCRYPTION TUTORIAL ON THE INTERNET. AM A PRO IN PYTHON . I LEARNT THE HARD WAY SO SAD I DIDNT SEE YOUR VIDEOS WHILE I WAS STRUGGLING LEARN YEARS AGO. ILL GIVE YOU A FOLLOW

  • @Anthony-wg7fn
    @Anthony-wg7fn 2 роки тому +1

    This was great. Can you please expand on this topic and talk about how to implement those other methods that take more steps?

  • @darthcode59
    @darthcode59 4 роки тому

    Hey Alex I learn java from your channel and i did a different version of encryption. I did the program yesterday and today i see you have uploaded it a month ago!

  • @stephen9849
    @stephen9849 4 роки тому +1

    Better than md5! Less used, better secured!

  • @codinggeek5230
    @codinggeek5230 3 роки тому +1

    Thank you Alex Lee, for a wonderful tutorial

  • @Kizuki25
    @Kizuki25 4 роки тому

    You own my subscription , good video !

  • @smokinamby
    @smokinamby 3 роки тому

    I find some people hard to understand, but you my friend. You have something about the way you explain stuff that makes things alot easier to understand than most other people that try and teach the exact same concepts. Your videos almost never fail me, somehow. Just wanted to say thanks for the help. For the love of god, get some dark mode goin on...

  • @efeaydemir1413
    @efeaydemir1413 2 роки тому

    thanks mate, very easy to understand !

  • @cinephile9015
    @cinephile9015 4 роки тому +2

    Well Explained Alex. Can you make a video on Threads it would be helpful.

  • @ultra_xd
    @ultra_xd 4 роки тому +6

    Hey Alex,
    I was wondering if you could do a tutorial on serialization so I could save my objects into a file. It would be very much appreciated! Thanks!
    P.S Your videos are awesome.

  • @raymondmichael4987
    @raymondmichael4987 4 роки тому

    Helpful and subed.
    Greetings from Tanzania 🇹🇿

  • @astronautcowboy2142
    @astronautcowboy2142 3 роки тому

    This was so awesome to see! I want to make tons of encrypted messages now haha.

  • @defth
    @defth 4 роки тому

    This helped me so much.

  • @benpoarch2741
    @benpoarch2741 4 роки тому

    Helped me complete a caesar cipher lab thanks!!!

  • @mannyokafor4609
    @mannyokafor4609 4 роки тому +2

    do a Annotations video pleasee

  • @__-cd1nd
    @__-cd1nd 4 роки тому

    Thanks for your help🙏🏼

  • @mansoorahmad9564
    @mansoorahmad9564 2 роки тому

    Love it thanks alot brother

  • @swapnasamparnasahoo7736
    @swapnasamparnasahoo7736 Рік тому

    thank you so much,it helpedme a lot

  • @indomitablehumanspirit8320
    @indomitablehumanspirit8320 2 роки тому

    Alex i fuckking love you man I swear I am learning this right now in my class and I don't understand shit but because of you I have finally understood it tysm

  • @3monsterbeast
    @3monsterbeast 4 роки тому

    You made it so easy to subscribe :)

  • @omer88kemal
    @omer88kemal 3 роки тому

    Very useful bro thank you😊😊😊

  • @kevinm.1565
    @kevinm.1565 4 роки тому

    Great stuff! :-) Thank you.

  • @milannovic5820
    @milannovic5820 4 роки тому +2

    It's like you are reading my mind. I was looking couple hours ago do you have a lesson about this. Keep up with good work and big support from Bosnia and Herzegovina 😃👍

  • @johncarlodiaz3829
    @johncarlodiaz3829 4 роки тому +1

    Hello Alex, can you make a video about making a database using mySQL?

  • @Sammym2001
    @Sammym2001 4 роки тому

    I love your Java tutorials and they are very good at helping me remember a lot of concepts that I have probably forgotten in Java but unfortunately, my university teaches C++ and I was wondering if you have any plans to make any videos regarding C++ either on this channel or another channel.

  • @HarshRajAlwaysfree
    @HarshRajAlwaysfree 4 роки тому

    I always wanted to watch a video related to this topic

  • @reivax8419
    @reivax8419 4 роки тому +1

    Could you cover bitmaps? And also great video

  • @HarshRajAlwaysfree
    @HarshRajAlwaysfree 4 роки тому +8

    Can you make a video on making a simple game like fappy bird with Java ?

    • @habibishapur
      @habibishapur 4 роки тому

      if you want to make games look at c# or c++ instead oj java. hell maybe even python

    • @mr_confuse
      @mr_confuse 4 роки тому +4

      Fappy Bird, sounds interesting indeed

  • @prof_as
    @prof_as 2 роки тому

    thanks really understandable

  • @AzureKnight
    @AzureKnight 3 роки тому

    thnx a lot brother just studying a night before for the exams

  • @raneemayman7581
    @raneemayman7581 3 роки тому +1

    what about asking the user to enter the key and enter a text how to write it?
    for Encryption and Decryption

  • @CodingKida
    @CodingKida 4 роки тому

    One of the best logic.

  • @nalule-Grace
    @nalule-Grace 3 роки тому

    This was very helpful.
    Hope to learn more from you.

    • @n9583
      @n9583 3 роки тому

      Yr

  • @MisterWealth
    @MisterWealth 4 роки тому +1

    Question: So what if you don't know that it's -6 for example?

    • @IkeVoodoo
      @IkeVoodoo 4 роки тому

      You can't get the original message

  • @Oismyurl
    @Oismyurl 4 роки тому +1

    Hey man. Great video!
    Any chance you could do something on Threads? :D

  • @shamielhashimibrahim5506
    @shamielhashimibrahim5506 2 роки тому

    Thank you so much it clear explanation, I am wandering what if the input is a text file not an string, who to treat it?

  • @keynnethespillo1217
    @keynnethespillo1217 2 роки тому

    What app is this where can I find this

  • @amitpanc
    @amitpanc 4 роки тому +3

    When I do c = c+5; it complains of "can't convert from int to char" while c += 5; works fine. Why?

    • @samhou8897
      @samhou8897 4 роки тому

      u should do c = (char) + (c + 5);

    • @smokinamby
      @smokinamby 3 роки тому

      The first part, When you said "when I do" you're assigning the value of c+5 to a variable named c. The second part of your question, you're comparing 2 values, not assigning values. So the first one you assigned a value. The second one you're comparing a value. Assigning vs comparing. One operator will assign. Two operators will compare.

    • @smokinamby
      @smokinamby 3 роки тому

      And the answer to your question is variable c is of type char. C+5 is an int (because it has a whole number). You cannot put an int into a char type variable. (Unless you cast it, which you'd only do if you're sure it's not gonna be losing any information). As I said in my last comment these are 2 completely different operations. The first operation you asked is ASSIGNING a value. The second operation you're COMPARING 2 values.

    • @smokinamby
      @smokinamby 3 роки тому

      Your first statement you are 'saying' put this value in c. Your second statement you're 'saying' while c has this value, do this.

    • @adamlorbetskie3404
      @adamlorbetskie3404 3 роки тому

      @@smokinamby They're both assigning

  • @merman3804
    @merman3804 3 роки тому

    Can you tell me are this cipher is a Cesar?

  • @Destroyer19941995
    @Destroyer19941995 2 роки тому

    Thank you legend!

  • @wolontong
    @wolontong 2 роки тому

    real question. what is this encryption method called?

  • @av2678
    @av2678 3 роки тому

    Alex: some things like key always confused me
    But i didnt got confused
    Cz learnt from you
    Thx Alex, you inspired me so much for programming

  • @jeafearn2097
    @jeafearn2097 4 роки тому

    sir, it's very helpful. is this a part of Caesar Cipher?

  • @jonathantremblay4722
    @jonathantremblay4722 4 роки тому

    Thanks a lot !

  • @AvivaScott
    @AvivaScott 2 роки тому

    Does the algorithm you used to encrypt/decrypt have a specific name? Thanks! Great tutorial

    • @maxpeng3000
      @maxpeng3000 2 роки тому +1

      I think it’s called caeser cipher

  • @androidpc9656
    @androidpc9656 2 роки тому

    is there any name for this algorithm?
    and what happenns if we encrypt the last ascii character

  • @sanjanajhurry6170
    @sanjanajhurry6170 2 роки тому

    this is symmetric encryption right?

  • @rox4333
    @rox4333 Рік тому

    What compiler did u used?

  • @Westsydney2000
    @Westsydney2000 2 роки тому

    Hey i have a problem when i ude space In my text i get an error message

  • @markanthonyzara3464
    @markanthonyzara3464 3 роки тому

    Alex do you know how to encrypt / decrypt file using java?

  • @sivakrishnat5471
    @sivakrishnat5471 3 роки тому

    Hi Alex,
    it is a nice video. also, please make a video on session keys and encryption.

  • @truvoi8686
    @truvoi8686 4 роки тому

    Superb.

  • @information88info
    @information88info 3 роки тому

    Thanks buddy

  • @Memelogy296
    @Memelogy296 3 роки тому

    Can you please do this in C#??

  • @psychologyfactstothinkabout
    @psychologyfactstothinkabout 4 роки тому

    can you make a video on debugging please

  • @pooblock4092
    @pooblock4092 4 роки тому

    How do i use the c variable outside of the brackets?

  • @tacitkiller6060
    @tacitkiller6060 4 роки тому

    Now the question is how do you hide the key in such a way it’s unreadable to send it from server to device and vice versa

  • @mallickpriyanshuOG
    @mallickpriyanshuOG 3 роки тому

    Can you make a video on some more complex encryption? And also encrypting all types of files

  • @ideology8323
    @ideology8323 4 роки тому

    this is kind of cool

  • @definitlyarealperson7041
    @definitlyarealperson7041 3 роки тому

    Amazing video!
    What peoples do in a 100 lines of code you put in just 20!

  • @mugolastbon1552
    @mugolastbon1552 4 роки тому

    Demn, that's awesome man....

  • @rowdy8951
    @rowdy8951 3 роки тому

    good job bro

  • @aamirkhan-mv4qj
    @aamirkhan-mv4qj 9 місяців тому

    Awesome..😊

  • @shandenegray5626
    @shandenegray5626 4 роки тому

    You're the BEST

  • @mindmind1301
    @mindmind1301 4 роки тому

    Hello can you make a tutorial on triple des encryption and decryption ? your video is really helping thx so much mate

  • @sarthakpawar2407
    @sarthakpawar2407 4 роки тому

    Can you plz make a video on threads in java. I can't understand it clearly

  • @S3rvantofAllahAzzawajal
    @S3rvantofAllahAzzawajal 3 роки тому

    how would you make it so it doesn't encode numbers and special characters?

  • @widadkhan6629
    @widadkhan6629 4 роки тому

    Great!

  • @Ms_Oszy
    @Ms_Oszy 2 роки тому

    It so cool , this called Ceaser Cipher, Encrypt to ge Cipher C as C= char+key, decrypt the restore original message m as, m= C-KEY.

  • @codingwithelhacen990
    @codingwithelhacen990 4 роки тому

    thank you.

  • @brizzaangelareyes159
    @brizzaangelareyes159 Рік тому

    Thank u it's 😊

  • @liambrain7551
    @liambrain7551 4 роки тому

    Please can you do a StdDraw tutorial

  • @saifsayyed07
    @saifsayyed07 3 роки тому

    hey can you tell me how can i increase 1st char to 1 then 2nd char to 2 like each for each character

  • @VatsalRajyaguru17143
    @VatsalRajyaguru17143 4 роки тому

    What if i dont wanna shift the non letter characters??

  • @danow11
    @danow11 2 роки тому

    Great example. Working on this in my class and they did not do a great job of breaking down the steps in a simple way as you did. It was more like you will need to do this,this,this(using arbitrary descriptions) in some order, figure it out.

  • @blockofcheeze151
    @blockofcheeze151 3 роки тому

    How do i do this with files

  • @rmrishan5742
    @rmrishan5742 4 роки тому

    Thank You very much for the tutorial. I have a question. so "c" is a char. the encrypted code that you are printed in the console is actually for loop running several times and change the data in "c" . let's say i want to get the output as a string. How could I achieve this?

  • @crisjericollamado4101
    @crisjericollamado4101 4 роки тому

    Goodday, what do you call this algorithm? i was so confused ☹️

  • @HARIkRISHNA-km5cy
    @HARIkRISHNA-km5cy 4 роки тому

    Can you recommend me any good book for java?

  • @FazHD
    @FazHD 3 роки тому

    anyone know how to do it so it does input = ABCDEF and the output = ZYXWV?

  • @jayeshahirrao3868
    @jayeshahirrao3868 2 роки тому

    hey can somebody please explain that for loop to me.
    I know the conventional format of for loop. this is new to me

  • @vishnuo8036
    @vishnuo8036 4 роки тому

    but if we use c=c+1 instead of c+=1 , it is giving lossy conversion error

  • @2012mrmoh
    @2012mrmoh 4 роки тому +1

    This type of encryption called caesar cipher

  • @Yamii1008
    @Yamii1008 Рік тому

    If the char is z again i want to repeat form a

  • @woodrowbode7437
    @woodrowbode7437 2 роки тому

    If you decide to use an app that has the best encryption, choose Utopia Ecosystem

  • @hi-vk2sm
    @hi-vk2sm 4 роки тому +3

    Hey Alex, could you do a tutorial about bitwise operators (^=, >>,

  • @d3vz0ne
    @d3vz0ne 4 роки тому +1

    Don‘t forget Charlee :)! ☕️☕️☕️

  • @baselkaskas2093
    @baselkaskas2093 4 роки тому

    How do we make a database with arrays

  • @ITSTY-1811
    @ITSTY-1811 2 роки тому

    i wish i see this before activity, but my activity is already checked. haha