Basic Encryption And Decryption In Java #40

  Рет қаралды 126,734

Alex Lee

Alex Lee

Күн бұрын

Пікірлер: 160
@alexlorenlee
@alexlorenlee Жыл бұрын
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.
@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.
@chrisk.9469
@chrisk.9469 4 жыл бұрын
Honestly these are rlly cool, if we could do a mini series abt encryption id love it
@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 2 жыл бұрын
yo how'd it go
@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 2 ай бұрын
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
@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.
@TomJamesM
@TomJamesM 4 жыл бұрын
This was part of my assignment for my first year of uni. You made it sound so easy. Thanks! :)
@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...
@dyln1k
@dyln1k 4 жыл бұрын
I have my AP comp sci test tomorrow and your vids are really helping me, thanks!!
@stephen9849
@stephen9849 4 жыл бұрын
Better than md5! Less used, better secured!
@JustPassingByHere
@JustPassingByHere 4 жыл бұрын
Amazing work Alex keep it up you motivate me to keep working at this stuff!
@AzureKnight
@AzureKnight 3 жыл бұрын
thnx a lot brother just studying a night before for the exams
@Anthony-wg7fn
@Anthony-wg7fn 2 жыл бұрын
This was great. Can you please expand on this topic and talk about how to implement those other methods that take more steps?
@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!
@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
@woolly9468
@woolly9468 4 жыл бұрын
Alex: "Let's say the message is, 'hey, hows it hanging?'" Me: *puts "its the Russians"*
@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
@raymondmichael4987
@raymondmichael4987 4 жыл бұрын
Helpful and subed. Greetings from Tanzania 🇹🇿
@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 😃👍
@Kizuki25
@Kizuki25 4 жыл бұрын
You own my subscription , good video !
@astronautcowboy2142
@astronautcowboy2142 3 жыл бұрын
This was so awesome to see! I want to make tons of encrypted messages now haha.
@cinephile9015
@cinephile9015 4 жыл бұрын
Well Explained Alex. Can you make a video on Threads it would be helpful.
@benpoarch2741
@benpoarch2741 4 жыл бұрын
Helped me complete a caesar cipher lab thanks!!!
@johncarlodiaz3829
@johncarlodiaz3829 4 жыл бұрын
Hello Alex, can you make a video about making a database using mySQL?
@efeaydemir1413
@efeaydemir1413 2 жыл бұрын
thanks mate, very easy to understand !
@HarshRajAlwaysfree
@HarshRajAlwaysfree 4 жыл бұрын
I always wanted to watch a video related to this topic
@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?
@raneemayman7581
@raneemayman7581 3 жыл бұрын
what about asking the user to enter the key and enter a text how to write it? for Encryption and Decryption
@mannyokafor4609
@mannyokafor4609 4 жыл бұрын
do a Annotations video pleasee
@markanthonyzara3464
@markanthonyzara3464 3 жыл бұрын
Alex do you know how to encrypt / decrypt file using java?
@defth
@defth 4 жыл бұрын
This helped me so much.
@CodingKida
@CodingKida 4 жыл бұрын
One of the best logic.
@definitlyarealperson7041
@definitlyarealperson7041 3 жыл бұрын
Amazing video! What peoples do in a 100 lines of code you put in just 20!
@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 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
@swapnasamparnasahoo7736
@swapnasamparnasahoo7736 Жыл бұрын
thank you so much,it helpedme a lot
@Westsydney2000
@Westsydney2000 2 жыл бұрын
Hey i have a problem when i ude space In my text i get an error message
@androidpc9656
@androidpc9656 2 жыл бұрын
is there any name for this algorithm? and what happenns if we encrypt the last ascii character
@reivax8419
@reivax8419 4 жыл бұрын
Could you cover bitmaps? And also great video
@keynnethespillo1217
@keynnethespillo1217 Жыл бұрын
What app is this where can I find this
@nalule-Grace
@nalule-Grace 3 жыл бұрын
This was very helpful. Hope to learn more from you.
@n9583
@n9583 3 жыл бұрын
Yr
@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.
@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.
@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.
@rox4333
@rox4333 Жыл бұрын
What compiler did u used?
@omer88kemal
@omer88kemal 3 жыл бұрын
Very useful bro thank you😊😊😊
@3monsterbeast
@3monsterbeast 4 жыл бұрын
You made it so easy to subscribe :)
@__-cd1nd
@__-cd1nd 4 жыл бұрын
Thanks for your help🙏🏼
@wolontong
@wolontong 2 жыл бұрын
real question. what is this encryption method called?
@mansoorahmad9564
@mansoorahmad9564 2 жыл бұрын
Love it thanks alot brother
@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
@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
@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?
@merman3804
@merman3804 3 жыл бұрын
Can you tell me are this cipher is a Cesar?
@prof_as
@prof_as 2 жыл бұрын
thanks really understandable
@HarshRajAlwaysfree
@HarshRajAlwaysfree 4 жыл бұрын
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 жыл бұрын
Fappy Bird, sounds interesting indeed
@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.
@jeafearn2097
@jeafearn2097 4 жыл бұрын
sir, it's very helpful. is this a part of Caesar Cipher?
@kevinm.1565
@kevinm.1565 4 жыл бұрын
Great stuff! :-) Thank you.
@pooblock4092
@pooblock4092 4 жыл бұрын
How do i use the c variable outside of the brackets?
@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
@sivakrishnat5471
@sivakrishnat5471 3 жыл бұрын
Hi Alex, it is a nice video. also, please make a video on session keys and encryption.
@ideology8323
@ideology8323 4 жыл бұрын
this is kind of cool
@MadaraUchihaa7
@MadaraUchihaa7 3 жыл бұрын
how would you make it so it doesn't encode numbers and special characters?
@Destroyer19941995
@Destroyer19941995 2 жыл бұрын
Thank you legend!
@VatsalRajyaguru17143
@VatsalRajyaguru17143 4 жыл бұрын
What if i dont wanna shift the non letter characters??
@Oismyurl
@Oismyurl 4 жыл бұрын
Hey man. Great video! Any chance you could do something on Threads? :D
@blockofcheeze151
@blockofcheeze151 3 жыл бұрын
How do i do this with files
@thebinsohail
@thebinsohail 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); } } }
@mindmind1301
@mindmind1301 4 жыл бұрын
Hello can you make a tutorial on triple des encryption and decryption ? your video is really helping thx so much mate
@information88info
@information88info 3 жыл бұрын
Thanks buddy
@jonathantremblay4722
@jonathantremblay4722 3 жыл бұрын
Thanks a lot !
@shandenegray5626
@shandenegray5626 4 жыл бұрын
You're the BEST
@sanjanajhurry6170
@sanjanajhurry6170 2 жыл бұрын
this is symmetric encryption right?
@ITSTY-1811
@ITSTY-1811 2 жыл бұрын
i wish i see this before activity, but my activity is already checked. haha
@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
@hi-vk2sm
@hi-vk2sm 4 жыл бұрын
Hey Alex, could you do a tutorial about bitwise operators (^=, >>,
@rowdy8951
@rowdy8951 3 жыл бұрын
good job bro
@crisjericollamado4101
@crisjericollamado4101 4 жыл бұрын
Goodday, what do you call this algorithm? i was so confused ☹️
@mugolastbon1552
@mugolastbon1552 4 жыл бұрын
Demn, that's awesome man....
@mallickpriyanshuOG
@mallickpriyanshuOG 3 жыл бұрын
Can you make a video on some more complex encryption? And also encrypting all types of files
@FazHD
@FazHD 3 жыл бұрын
anyone know how to do it so it does input = ABCDEF and the output = ZYXWV?
@d3vz0ne
@d3vz0ne 4 жыл бұрын
Don‘t forget Charlee :)! ☕️☕️☕️
@vishnuo8036
@vishnuo8036 4 жыл бұрын
but if we use c=c+1 instead of c+=1 , it is giving lossy conversion error
@sarthakpawar2407
@sarthakpawar2407 4 жыл бұрын
Can you plz make a video on threads in java. I can't understand it clearly
@codingwithelhacen990
@codingwithelhacen990 4 жыл бұрын
thank you.
@HARIkRISHNA-km5cy
@HARIkRISHNA-km5cy 4 жыл бұрын
Can you recommend me any good book for java?
@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
@Memelogy296
@Memelogy296 3 жыл бұрын
Can you please do this in C#??
@truvoi8686
@truvoi8686 4 жыл бұрын
Superb.
@psychologyfactstothinkabout
@psychologyfactstothinkabout 4 жыл бұрын
can you make a video on debugging please
@baselkaskas2093
@baselkaskas2093 4 жыл бұрын
How do we make a database with arrays
@peterluxus7382
@peterluxus7382 2 жыл бұрын
video starts at 3:22
@2012mrmoh
@2012mrmoh 4 жыл бұрын
This type of encryption called caesar cipher
@tiboomvds344
@tiboomvds344 4 жыл бұрын
i have a question what does the : in java (i am a begginer
@panpantesmort
@panpantesmort 4 жыл бұрын
It is an operator used in a "for each" loop. Instead of doing your "for loop" like (int i =0; i < chars.length; i++) that would do the same, it's more convenient to say, "for each character c in the chars array, do X". And the way of saying it is "for (char c : chars)". In this example, "c" could be anything (don't forget to declare the type of "c" first though, in this case it's a char array so that will obviously be "char"). You name it the way you want, it's for your convenience to use only inside the "for each" loop. So, the ":" is just what you use in this case.
@widadkhan6629
@widadkhan6629 4 жыл бұрын
Great!
@divyanshutripathi5305
@divyanshutripathi5305 4 жыл бұрын
Background song Name?
@liambrain7551
@liambrain7551 4 жыл бұрын
Please can you do a StdDraw tutorial
Reverse String in Java Practice Program #41
11:53
Alex Lee
Рет қаралды 260 М.
7 Cryptography Concepts EVERY Developer Should Know
11:55
Fireship
Рет қаралды 1,4 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 29 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 18 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 14 МЛН
Java encryption program 🔑
32:06
Bro Code
Рет қаралды 47 М.
Learn Java in 14 Minutes (seriously)
14:00
Alex Lee
Рет қаралды 4,9 МЛН
This Keyword in Java Tutorial #80
10:39
Alex Lee
Рет қаралды 185 М.
Inheritance in Java Tutorial #86
10:34
Alex Lee
Рет қаралды 394 М.
Cryptography 101 for Java developers by Michel Schudel
42:59
Java Strings are Immutable - Here's What That Actually Means
7:06
Coding with John
Рет қаралды 624 М.
Password Storage Tier List: encryption, hashing, salting, bcrypt, and beyond
10:16
Try Catch Java Tutorial #46
11:05
Alex Lee
Рет қаралды 221 М.
Java in Tamil - New Features - Stream API in Tamil
41:23
Payilagam
Рет қаралды 15 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 29 МЛН