How to Encrypt and Decrypt Text Using Java (Simple)

preview_player
Показать описание
How to Encrypt and Decrypt Text Using Java

Greetings, today we shall be looking at how to encrypt and decrypt a string using Java's cryptography library with AES (Advanced Encryption Standard) encryption. You can incorporate this tutorial with my previous file handling videos if you wish to have encrypted data in your files. This tutorial will work for other encryption algorithems like DES. I hope you enjoy and thanks for watching!

This tutorial is for beginners. If you plan to encrypt sensitive data, please do more research on the topic.

Why not subscribe?

How to Encrypt and Decrypt Text Using Java
Рекомендации по теме
Комментарии
Автор

Tip: Please make your font bigger or zoom your video little more. Its very useful for everyone.
Great video thanks.

teampluto
Автор

you are a godsend during this quarantine. like the joe wick for programming

avacadoslayer
Автор

How do I store the key, to Decrypt later?

shlokkamat
Автор

Thanks man great video, only critique is the font size

immortalpuffin
Автор

you are a great speaker, prime minister potential.

oioioioitisme
Автор

Hey, how to do the same thing but with files? I want to encrypt some text, write it to the file and then read the file and decrypt the text. How to use the same secret key and not generate the new one each time. Thanks

danijalazerovic
Автор

Thanks for the video. Trying to get this to work but .. how do you get encrypted data into a byte[] if you didn't encrypt it in the same session?
e.g. I want to write to a file something unreadable (encrypted). Next run, i want this to be readable (decrypted). I have to feed the decryptString method with a byte[] containing the encrypted data.
I don't see how I could get the encrypted data into byte[]. I feel like I am missing something....😬

vincinoyb
Автор

Hi,
How would I make a program that accepts a plaintext, letter array and encrypted arrayList and uses these parameters to encrypt the word and return it.?

dambert
Автор

How do we come to know our output is correct?
What is key value?

deshnashah
Автор

How can I encrypt and decrypt the same text but always return the same result for the same text?

Ex:

1° cryptography
input = "Test"
encrypt(input) = 123456Abc

decrypt(123456Abc) = "Test"


2° cryptography
input = "Test"
encrypt(input) = 123456Abc (same input [Test] returned the same result)

decrypt(123456Abc) = "Test"

hangeryouhen
Автор

Does this work still if you input a string that includes spaces or special characters ?
thank you

alicehughes
Автор

can is use this code for Camellia encryption?

kw
Автор

What if someone has access to this code? I mean if he knows the the encryption works.

Stl
Автор

You're awesome! but.. why don't you use Dark Mode?

davidmalich
Автор

bro, please provide code for the same...!!! its urgent :(

abhaypatil
visit shbcf.ru