Basic Encryption And Decryption In Java #40

  Рет қаралды 124,559

Alex Lee

Alex Lee

Күн бұрын

Пікірлер: 159
@alexlorenlee
@alexlorenlee 10 ай бұрын
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 жыл бұрын
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 жыл бұрын
Honestly these are rlly cool, if we could do a mini series abt encryption id love it
@michaeltheisen
@michaeltheisen Жыл бұрын
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 жыл бұрын
Final Exam Tomorrow, Thanks for the help throughout the semester Professor Lee!
@alexlorenlee
@alexlorenlee 4 жыл бұрын
good luck!
@eastarwars464
@eastarwars464 4 жыл бұрын
AP exam? 😂 I think I failed that.
@ivanarabome4172
@ivanarabome4172 3 жыл бұрын
Same men that’s why I’m here 😂😂
@ertizajowdat9828
@ertizajowdat9828 3 жыл бұрын
@@ivanarabome4172 I lowkey wanna know how his exam went
@Mikizushi
@Mikizushi Жыл бұрын
yo how'd it go
@TomJMumford
@TomJMumford 4 жыл бұрын
This was part of my assignment for my first year of uni. You made it sound so easy. Thanks! :)
@shehzadadeel3727
@shehzadadeel3727 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.
@statxs
@statxs 4 жыл бұрын
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 жыл бұрын
Alex: "Let's say the message is, 'hey, hows it hanging?'" Me: *puts "its the Russians"*
@dyln1k
@dyln1k 4 жыл бұрын
I have my AP comp sci test tomorrow and your vids are really helping me, thanks!!
@JustPassingByHere
@JustPassingByHere 4 жыл бұрын
Amazing work Alex keep it up you motivate me to keep working at this stuff!
@Anthony-wg7fn
@Anthony-wg7fn Жыл бұрын
This was great. Can you please expand on this topic and talk about how to implement those other methods that take more steps?
@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...
@milannovic5820
@milannovic5820 4 жыл бұрын
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 😃👍
@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
@ultra_xd
@ultra_xd 4 жыл бұрын
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.
@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
@stephen9849
@stephen9849 4 жыл бұрын
Better than md5! Less used, better secured!
@cinephile9015
@cinephile9015 4 жыл бұрын
Well Explained Alex. Can you make a video on Threads it would be helpful.
@codinggeek5230
@codinggeek5230 3 жыл бұрын
Thank you Alex Lee, for a wonderful tutorial
@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!
@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.
@AzureKnight
@AzureKnight 3 жыл бұрын
thnx a lot brother just studying a night before for the exams
@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.
@johncarlodiaz3829
@johncarlodiaz3829 3 жыл бұрын
Hello Alex, can you make a video about making a database using mySQL?
@mannyokafor4609
@mannyokafor4609 4 жыл бұрын
do a Annotations video pleasee
@benpoarch2741
@benpoarch2741 3 жыл бұрын
Helped me complete a caesar cipher lab thanks!!!
@definitlyarealperson7041
@definitlyarealperson7041 3 жыл бұрын
Amazing video! What peoples do in a 100 lines of code you put in just 20!
@swapnasamparnasahoo7736
@swapnasamparnasahoo7736 Жыл бұрын
thank you so much,it helpedme a lot
@raymondmichael4987
@raymondmichael4987 4 жыл бұрын
Helpful and subed. Greetings from Tanzania 🇹🇿
@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?
@hi-vk2sm
@hi-vk2sm 4 жыл бұрын
Hey Alex, could you do a tutorial about bitwise operators (^=, >>,
@prof_as
@prof_as Жыл бұрын
thanks really understandable
@astronautcowboy2142
@astronautcowboy2142 3 жыл бұрын
This was so awesome to see! I want to make tons of encrypted messages now haha.
@raneemayman7581
@raneemayman7581 2 жыл бұрын
what about asking the user to enter the key and enter a text how to write it? for Encryption and Decryption
@mansoorahmad9564
@mansoorahmad9564 Жыл бұрын
Love it thanks alot brother
@HarshRajAlwaysfree
@HarshRajAlwaysfree 4 жыл бұрын
Can you make a video on making a simple game like fappy bird with Java ?
@habibishapur
@habibishapur 3 жыл бұрын
if you want to make games look at c# or c++ instead oj java. hell maybe even python
@mr_confuse
@mr_confuse 3 жыл бұрын
Fappy Bird, sounds interesting indeed
@efeaydemir1413
@efeaydemir1413 2 жыл бұрын
thanks mate, very easy to understand !
@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.
@Kizuki25
@Kizuki25 4 жыл бұрын
You own my subscription , good video !
@reivax8419
@reivax8419 4 жыл бұрын
Could you cover bitmaps? And also great video
@Destroyer19941995
@Destroyer19941995 2 жыл бұрын
Thank you legend!
@HarshRajAlwaysfree
@HarshRajAlwaysfree 4 жыл бұрын
I always wanted to watch a video related to this topic
@EverythingEverythingwithGrace
@EverythingEverythingwithGrace 3 жыл бұрын
This was very helpful. Hope to learn more from you.
@n9583
@n9583 3 жыл бұрын
Yr
@information88info
@information88info 3 жыл бұрын
Thanks buddy
@mindmind1301
@mindmind1301 3 жыл бұрын
Hello can you make a tutorial on triple des encryption and decryption ? your video is really helping thx so much mate
@Oismyurl
@Oismyurl 4 жыл бұрын
Hey man. Great video! Any chance you could do something on Threads? :D
@sivakrishnat5471
@sivakrishnat5471 3 жыл бұрын
Hi Alex, it is a nice video. also, please make a video on session keys and encryption.
@omer88kemal
@omer88kemal 2 жыл бұрын
Very useful bro thank you😊😊😊
@defth
@defth 4 жыл бұрын
This helped me so much.
@rowdy8951
@rowdy8951 3 жыл бұрын
good job bro
@__-cd1nd
@__-cd1nd 4 жыл бұрын
Thanks for your help🙏🏼
@CodingKida
@CodingKida 4 жыл бұрын
One of the best logic.
@quickthru108
@quickthru108 3 жыл бұрын
public class Encrypt{ public static void main(String[] args) { int salt=(int)(1+(Math.random())*9); String string="Hello World"; System.out.println(string); char [] chars=string.toCharArray(); for(char c:chars){ c+=salt; System.out.print(c); } } }
@mallickpriyanshuOG
@mallickpriyanshuOG 3 жыл бұрын
Can you make a video on some more complex encryption? And also encrypting all types of files
@MisterWealth
@MisterWealth 4 жыл бұрын
Question: So what if you don't know that it's -6 for example?
@IkeVoodoo
@IkeVoodoo 4 жыл бұрын
You can't get the original message
@3monsterbeast
@3monsterbeast 4 жыл бұрын
You made it so easy to subscribe :)
@kevinm.1565
@kevinm.1565 4 жыл бұрын
Great stuff! :-) Thank you.
@jonathantremblay4722
@jonathantremblay4722 3 жыл бұрын
Thanks a lot !
@truvoi8686
@truvoi8686 3 жыл бұрын
Superb.
@amitpanc
@amitpanc 4 жыл бұрын
When I do c = c+5; it complains of "can't convert from int to char" while c += 5; works fine. Why?
@samhou8897
@samhou8897 3 жыл бұрын
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 2 жыл бұрын
@@smokinamby They're both assigning
@brizzaangelareyes159
@brizzaangelareyes159 Жыл бұрын
Thank u it's 😊
@orb454
@orb454 Жыл бұрын
i wish i see this before activity, but my activity is already checked. haha
@aamirkhan-mv4qj
@aamirkhan-mv4qj 4 ай бұрын
Awesome..😊
@androidpc9656
@androidpc9656 Жыл бұрын
is there any name for this algorithm? and what happenns if we encrypt the last ascii character
@jeafearn2097
@jeafearn2097 3 жыл бұрын
sir, it's very helpful. is this a part of Caesar Cipher?
@jayeshahirrao3868
@jayeshahirrao3868 Жыл бұрын
hey can somebody please explain that for loop to me. I know the conventional format of for loop. this is new to me
@sarthakpawar2407
@sarthakpawar2407 4 жыл бұрын
Can you plz make a video on threads in java. I can't understand it clearly
@woodrowbode7437
@woodrowbode7437 Жыл бұрын
If you decide to use an app that has the best encryption, choose Utopia Ecosystem
@wolontong
@wolontong 2 жыл бұрын
real question. what is this encryption method called?
@codingwithelhacen990
@codingwithelhacen990 4 жыл бұрын
thank you.
@ideology8323
@ideology8323 4 жыл бұрын
this is kind of cool
@Westsydney2000
@Westsydney2000 2 жыл бұрын
Hey i have a problem when i ude space In my text i get an error message
@AvivaScott
@AvivaScott 2 жыл бұрын
Does the algorithm you used to encrypt/decrypt have a specific name? Thanks! Great tutorial
@maxpeng3000
@maxpeng3000 2 жыл бұрын
I think it’s called caeser cipher
@FazHD
@FazHD 3 жыл бұрын
anyone know how to do it so it does input = ABCDEF and the output = ZYXWV?
@psychologyfactstothinkabout
@psychologyfactstothinkabout 4 жыл бұрын
can you make a video on debugging please
@tacitkiller6060
@tacitkiller6060 3 жыл бұрын
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
@shandenegray5626
@shandenegray5626 4 жыл бұрын
You're the BEST
@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
@asonga5410
@asonga5410 4 жыл бұрын
This was great, didn't know you could do easily convert strings into arrays character by character like that.
@sanjanajhurry6170
@sanjanajhurry6170 2 жыл бұрын
this is symmetric encryption right?
@markanthonyzara3464
@markanthonyzara3464 3 жыл бұрын
Alex do you know how to encrypt / decrypt file using java?
@mugolastbon1552
@mugolastbon1552 4 жыл бұрын
Demn, that's awesome man....
@MadaraUchihaa7
@MadaraUchihaa7 3 жыл бұрын
how would you make it so it doesn't encode numbers and special characters?
@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?
@liambrain7551
@liambrain7551 4 жыл бұрын
Please can you do a StdDraw tutorial
@d3vz0ne
@d3vz0ne 4 жыл бұрын
Don‘t forget Charlee :)! ☕️☕️☕️
@Memelogy296
@Memelogy296 2 жыл бұрын
Can you please do this in C#??
@aamirkhan-mv4qj
@aamirkhan-mv4qj 4 ай бұрын
Awesome
@2012mrmoh
@2012mrmoh 4 жыл бұрын
This type of encryption called caesar cipher
@pooblock4092
@pooblock4092 3 жыл бұрын
How do i use the c variable outside of the brackets?
@mohamedabdalla844
@mohamedabdalla844 2 жыл бұрын
Write a Ceasar cipher algorithm in such a way that a character D is changed to N. Derive the encryption of the other characters accordingly
@merman3804
@merman3804 3 жыл бұрын
Can you tell me are this cipher is a Cesar?
@vishnuo8036
@vishnuo8036 4 жыл бұрын
but if we use c=c+1 instead of c+=1 , it is giving lossy conversion error
@widadkhan6629
@widadkhan6629 4 жыл бұрын
Great!
@Yamii1008
@Yamii1008 Жыл бұрын
If the char is z again i want to repeat form a
@crisjericollamado4101
@crisjericollamado4101 3 жыл бұрын
Goodday, what do you call this algorithm? i was so confused ☹️
@rox4333
@rox4333 Жыл бұрын
What compiler did u used?
@VatsalRajyaguru17143
@VatsalRajyaguru17143 3 жыл бұрын
What if i dont wanna shift the non letter characters??
@blockofcheeze151
@blockofcheeze151 3 жыл бұрын
How do i do this with files
Reverse String in Java Practice Program #41
11:53
Alex Lee
Рет қаралды 258 М.
Multithreading in Java Explained in 10 Minutes
10:01
Coding with John
Рет қаралды 917 М.
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 26 МЛН
大家都拉出了什么#小丑 #shorts
00:35
好人小丑
Рет қаралды 81 МЛН
7 Cryptography Concepts EVERY Developer Should Know
11:55
Fireship
Рет қаралды 1,3 МЛН
Abstract Class In Java Tutorial #79
8:55
Alex Lee
Рет қаралды 540 М.
SHA: Secure Hashing Algorithm - Computerphile
10:21
Computerphile
Рет қаралды 1,2 МЛН
Cryptography 101 for Java developers by Michel Schudel
42:59
Inheritance in Java Tutorial #86
10:34
Alex Lee
Рет қаралды 383 М.
Java's Hello World Is About To Change Forever
10:22
Coding with John
Рет қаралды 192 М.
Try Catch Java Tutorial #46
11:05
Alex Lee
Рет қаралды 217 М.
Crypto: Caesar Cipher explained | Java implementation
40:10
The CS Revelation
Рет қаралды 8 М.