Submit Search
Upload
Network security
•
Download as DOCX, PDF
•
0 likes
•
144 views
R
Rakesh chaudhary
Follow
using the java . itt is the network security practical program
Read less
Read more
Education
Report
Share
Report
Share
1 of 7
Download now
Recommended
Abusing text/template for data transformation
Abusing text/template for data transformation
Arnaud Porterie
Implementing Software Machines in C and Go
Implementing Software Machines in C and Go
Eleanor McHugh
ikh331-06-distributed-programming
ikh331-06-distributed-programming
Anung Ariwibowo
Implementing Software Machines in Go and C
Implementing Software Machines in Go and C
Eleanor McHugh
The Ruby Guide to *nix Plumbing: on the quest for efficiency with Ruby [M|K]RI
The Ruby Guide to *nix Plumbing: on the quest for efficiency with Ruby [M|K]RI
Eleanor McHugh
Rust Synchronization Primitives
Rust Synchronization Primitives
Corey Richardson
Go a crash course
Go a crash course
Eleanor McHugh
From NumPy to PyTorch
From NumPy to PyTorch
Mike Ruberry
Recommended
Abusing text/template for data transformation
Abusing text/template for data transformation
Arnaud Porterie
Implementing Software Machines in C and Go
Implementing Software Machines in C and Go
Eleanor McHugh
ikh331-06-distributed-programming
ikh331-06-distributed-programming
Anung Ariwibowo
Implementing Software Machines in Go and C
Implementing Software Machines in Go and C
Eleanor McHugh
The Ruby Guide to *nix Plumbing: on the quest for efficiency with Ruby [M|K]RI
The Ruby Guide to *nix Plumbing: on the quest for efficiency with Ruby [M|K]RI
Eleanor McHugh
Rust Synchronization Primitives
Rust Synchronization Primitives
Corey Richardson
Go a crash course
Go a crash course
Eleanor McHugh
From NumPy to PyTorch
From NumPy to PyTorch
Mike Ruberry
PMED Undergraduate Workshop - R Tutorial for PMED Undegraduate Workshop - Xi...
PMED Undergraduate Workshop - R Tutorial for PMED Undegraduate Workshop - Xi...
The Statistical and Applied Mathematical Sciences Institute
Stackless Python 101
Stackless Python 101
guest162fd90
Vcs28
Vcs28
Malikireddy Bramhananda Reddy
Mintz q207
Mintz q207
Obsidian Software
Five
Five
Łukasz Langa
[Curso Java Basico] Aula 69: Criando varias Threads + metodos isAlive e join
[Curso Java Basico] Aula 69: Criando varias Threads + metodos isAlive e join
Loiane Groner
The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.5.1 book - Part 24 of 180
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 84 of 196
The Ring programming language version 1.7 book - Part 84 of 196
Mahmoud Samir Fayed
The Ring programming language version 1.10 book - Part 34 of 212
The Ring programming language version 1.10 book - Part 34 of 212
Mahmoud Samir Fayed
Input and Output
Input and Output
Marieswaran Ramasamy
Леонид Шевцов «Clojure в деле»
Леонид Шевцов «Clojure в деле»
DataArt
Multi threading
Multi threading
PavanAnudeepMotiki
Степан Кольцов — Rust — лучше, чем C++
Степан Кольцов — Rust — лучше, чем C++
Yandex
Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...
Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...
akaptur
The Ring programming language version 1.6 book - Part 28 of 189
The Ring programming language version 1.6 book - Part 28 of 189
Mahmoud Samir Fayed
Poker, packets, pipes and Python
Poker, packets, pipes and Python
Roger Barnes
The Ring programming language version 1.8 book - Part 31 of 202
The Ring programming language version 1.8 book - Part 31 of 202
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 29 of 196
The Ring programming language version 1.7 book - Part 29 of 196
Mahmoud Samir Fayed
Boostライブラリ一周の旅
Boostライブラリ一周の旅
Akira Takahashi
[Curso Java Basico] Aula 70: Threads: Definindo prioridades
[Curso Java Basico] Aula 70: Threads: Definindo prioridades
Loiane Groner
Note the Second
Note the Second
coughenoura
Euskal kasuan izandako bizitzeko eskubidearen aurkako urraketen argazkiak, he...
Euskal kasuan izandako bizitzeko eskubidearen aurkako urraketen argazkiak, he...
Irekia - EJGV
More Related Content
What's hot
PMED Undergraduate Workshop - R Tutorial for PMED Undegraduate Workshop - Xi...
PMED Undergraduate Workshop - R Tutorial for PMED Undegraduate Workshop - Xi...
The Statistical and Applied Mathematical Sciences Institute
Stackless Python 101
Stackless Python 101
guest162fd90
Vcs28
Vcs28
Malikireddy Bramhananda Reddy
Mintz q207
Mintz q207
Obsidian Software
Five
Five
Łukasz Langa
[Curso Java Basico] Aula 69: Criando varias Threads + metodos isAlive e join
[Curso Java Basico] Aula 69: Criando varias Threads + metodos isAlive e join
Loiane Groner
The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.5.1 book - Part 24 of 180
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 84 of 196
The Ring programming language version 1.7 book - Part 84 of 196
Mahmoud Samir Fayed
The Ring programming language version 1.10 book - Part 34 of 212
The Ring programming language version 1.10 book - Part 34 of 212
Mahmoud Samir Fayed
Input and Output
Input and Output
Marieswaran Ramasamy
Леонид Шевцов «Clojure в деле»
Леонид Шевцов «Clojure в деле»
DataArt
Multi threading
Multi threading
PavanAnudeepMotiki
Степан Кольцов — Rust — лучше, чем C++
Степан Кольцов — Rust — лучше, чем C++
Yandex
Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...
Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...
akaptur
The Ring programming language version 1.6 book - Part 28 of 189
The Ring programming language version 1.6 book - Part 28 of 189
Mahmoud Samir Fayed
Poker, packets, pipes and Python
Poker, packets, pipes and Python
Roger Barnes
The Ring programming language version 1.8 book - Part 31 of 202
The Ring programming language version 1.8 book - Part 31 of 202
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 29 of 196
The Ring programming language version 1.7 book - Part 29 of 196
Mahmoud Samir Fayed
Boostライブラリ一周の旅
Boostライブラリ一周の旅
Akira Takahashi
[Curso Java Basico] Aula 70: Threads: Definindo prioridades
[Curso Java Basico] Aula 70: Threads: Definindo prioridades
Loiane Groner
What's hot
(20)
PMED Undergraduate Workshop - R Tutorial for PMED Undegraduate Workshop - Xi...
PMED Undergraduate Workshop - R Tutorial for PMED Undegraduate Workshop - Xi...
Stackless Python 101
Stackless Python 101
Vcs28
Vcs28
Mintz q207
Mintz q207
Five
Five
[Curso Java Basico] Aula 69: Criando varias Threads + metodos isAlive e join
[Curso Java Basico] Aula 69: Criando varias Threads + metodos isAlive e join
The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.5.1 book - Part 24 of 180
The Ring programming language version 1.7 book - Part 84 of 196
The Ring programming language version 1.7 book - Part 84 of 196
The Ring programming language version 1.10 book - Part 34 of 212
The Ring programming language version 1.10 book - Part 34 of 212
Input and Output
Input and Output
Леонид Шевцов «Clojure в деле»
Леонид Шевцов «Clojure в деле»
Multi threading
Multi threading
Степан Кольцов — Rust — лучше, чем C++
Степан Кольцов — Rust — лучше, чем C++
Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...
Allison Kaptur: Bytes in the Machine: Inside the CPython interpreter, PyGotha...
The Ring programming language version 1.6 book - Part 28 of 189
The Ring programming language version 1.6 book - Part 28 of 189
Poker, packets, pipes and Python
Poker, packets, pipes and Python
The Ring programming language version 1.8 book - Part 31 of 202
The Ring programming language version 1.8 book - Part 31 of 202
The Ring programming language version 1.7 book - Part 29 of 196
The Ring programming language version 1.7 book - Part 29 of 196
Boostライブラリ一周の旅
Boostライブラリ一周の旅
[Curso Java Basico] Aula 70: Threads: Definindo prioridades
[Curso Java Basico] Aula 70: Threads: Definindo prioridades
Viewers also liked
Note the Second
Note the Second
coughenoura
Euskal kasuan izandako bizitzeko eskubidearen aurkako urraketen argazkiak, he...
Euskal kasuan izandako bizitzeko eskubidearen aurkako urraketen argazkiak, he...
Irekia - EJGV
Christmas 2014
Christmas 2014
Thomas Charli
Eγκατάσταση Fortran
Eγκατάσταση Fortran
Dimitrios Mataras
paese pe paese
paese pe paese
Pierandrea Sartori
Christmas Homework
Christmas Homework
Miguel Ángel García Martín
Tema 1
Tema 1
fern1980
Sijil penghargaan (1)
Sijil penghargaan (1)
qurratu95
Androidでもサクサク動くHTML5ハイブリッドアプリの作り⽅
Androidでもサクサク動くHTML5ハイブリッドアプリの作り⽅
アシアル株式会社
Catalog MINOX Riflescopes | Optics Trade |
Catalog MINOX Riflescopes | Optics Trade |
Optics-Trade
Plaquette onet proprete et services
Plaquette onet proprete et services
aimeric
Remote sensing-ieee-2014-projects
Remote sensing-ieee-2014-projects
Vijay Karan
VITOGAZ vous informe: Cfbp la solution GPL
VITOGAZ vous informe: Cfbp la solution GPL
VITOGAZ FRANCE
Branded perfume
Branded perfume
Zohoor Alreef
Grow Your Business
Grow Your Business
HR Network marcus evans
LAUT
LAUT
Reni Aryanti
Viewers also liked
(16)
Note the Second
Note the Second
Euskal kasuan izandako bizitzeko eskubidearen aurkako urraketen argazkiak, he...
Euskal kasuan izandako bizitzeko eskubidearen aurkako urraketen argazkiak, he...
Christmas 2014
Christmas 2014
Eγκατάσταση Fortran
Eγκατάσταση Fortran
paese pe paese
paese pe paese
Christmas Homework
Christmas Homework
Tema 1
Tema 1
Sijil penghargaan (1)
Sijil penghargaan (1)
Androidでもサクサク動くHTML5ハイブリッドアプリの作り⽅
Androidでもサクサク動くHTML5ハイブリッドアプリの作り⽅
Catalog MINOX Riflescopes | Optics Trade |
Catalog MINOX Riflescopes | Optics Trade |
Plaquette onet proprete et services
Plaquette onet proprete et services
Remote sensing-ieee-2014-projects
Remote sensing-ieee-2014-projects
VITOGAZ vous informe: Cfbp la solution GPL
VITOGAZ vous informe: Cfbp la solution GPL
Branded perfume
Branded perfume
Grow Your Business
Grow Your Business
LAUT
LAUT
Similar to Network security
Network security
Network security
babyangle
Java practice programs for beginners
Java practice programs for beginners
ishan0019
Java Simple Programs
Java Simple Programs
Upender Upr
Problem1 java codeimport java.util.Scanner; Java code to pr.pdf
Problem1 java codeimport java.util.Scanner; Java code to pr.pdf
anupamfootwear
Advanced Java - Practical File
Advanced Java - Practical File
Fahad Shaikh
Advanced Java Practical File
Advanced Java Practical File
Soumya Behera
Utility.ppt
Utility.ppt
BruceLee275640
The Art of Clean Code
The Art of Clean Code
Yael Zaritsky Perez
Cifrado cesar
Cifrado cesar
EIYSC
Java file
Java file
simarsimmygrewal
Java file
Java file
simarsimmygrewal
Sam wd programs
Sam wd programs
Soumya Behera
DCN Practical
DCN Practical
Niraj Bharambe
JAVA.pdf
JAVA.pdf
jyotir7777
Code javascript
Code javascript
Ray Ray
information Security.docx
information Security.docx
SouravKarak1
Java binary subtraction
Java binary subtraction
Charm Sasi
Internet Technology (Practical Questions Paper) [CBSGS - 75:25 Pattern] {Mast...
Internet Technology (Practical Questions Paper) [CBSGS - 75:25 Pattern] {Mast...
Mumbai B.Sc.IT Study
Dotnet 18
Dotnet 18
dhruvesh718
Java programs
Java programs
jojeph
Similar to Network security
(20)
Network security
Network security
Java practice programs for beginners
Java practice programs for beginners
Java Simple Programs
Java Simple Programs
Problem1 java codeimport java.util.Scanner; Java code to pr.pdf
Problem1 java codeimport java.util.Scanner; Java code to pr.pdf
Advanced Java - Practical File
Advanced Java - Practical File
Advanced Java Practical File
Advanced Java Practical File
Utility.ppt
Utility.ppt
The Art of Clean Code
The Art of Clean Code
Cifrado cesar
Cifrado cesar
Java file
Java file
Java file
Java file
Sam wd programs
Sam wd programs
DCN Practical
DCN Practical
JAVA.pdf
JAVA.pdf
Code javascript
Code javascript
information Security.docx
information Security.docx
Java binary subtraction
Java binary subtraction
Internet Technology (Practical Questions Paper) [CBSGS - 75:25 Pattern] {Mast...
Internet Technology (Practical Questions Paper) [CBSGS - 75:25 Pattern] {Mast...
Dotnet 18
Dotnet 18
Java programs
Java programs
Recently uploaded
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
Sabitha Banu
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
Marc Dusseiller Dusjagr
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
pboyjonauth
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
UnboundStockton
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
9953056974 Low Rate Call Girls In Saket, Delhi NCR
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
Dr. Mazin Mohamed alkathiri
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
GaneshChakor2
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
pboyjonauth
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
NirmalaLoungPoorunde1
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
Celine George
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
thorishapillay1
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
SamikshaHamane
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
UjwalaBharambe
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
nomboosow
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
OH TEIK BIN
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
iammrhaywood
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Sumit Tiwari
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
Dr. Mazin Mohamed alkathiri
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
Virag Sontakke
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
Virag Sontakke
Recently uploaded
(20)
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
Network security
1.
1.AES for usingthe
java(subjectnetworksecurity) package aes; importjava.io.*; classCaesarCipher { publicstaticvoidmain(String[]args) throwsException { Stringpt,ct; intkey=3; BufferedReaderbr=new BufferedReader(new InputStreamReader(System.in)); System.out.print("EnterPlainText:"); pt = br.readLine().toUpperCase(); ct = doEncrypt(pt,key); System.out.println("CipherText:" + ct); pt = doDecrypt(ct,key); System.out.println("DecryptedPlainText:" + pt); } staticString doEncrypt(Stringpt,intkey) { char c; intnum;
2.
StringBuffersb=newStringBuffer(pt); for(inti=0;i<sb.length();i++) { num= sb.charAt(i)-65; num+=key; if(num>=26) num-=26; c
= (char)(num+65); sb.setCharAt(i,c); } returnnewString(sb); } staticString doDecrypt(Stringct,intkey) { returndoEncrypt(ct,26-key).toLowerCase(); } } 2. blowfishusingthe java package blowfish; importjavax.crypto.Cipher; importjavax.crypto.spec.SecretKeySpec; importsun.misc.BASE64Decoder;
3.
importsun.misc.BASE64Encoder; publicclassBlowfish{ publicstaticvoidmain(String[] args) throwsException{ encrypt("edwin","password"); decrypt("6VsVtA/nhHKUZuWWmod/BQ=="); } private
staticvoidencrypt(Stringusername,Stringpassword) throwsException{ byte[] keyData=(username+password).getBytes(); SecretKeySpecsecretKeySpec=newSecretKeySpec(keyData,"Blowfish"); Ciphercipher=Cipher.getInstance("Blowfish"); cipher.init(Cipher.ENCRYPT_MODE,secretKeySpec); byte[] hasil =cipher.doFinal(password.getBytes()); System.out.println(new BASE64Encoder().encode(hasil)); } private staticvoid decrypt(Stringstring) throwsException{ byte[] keyData=("edwin"+"password").getBytes(); SecretKeySpecsecretKeySpec=newSecretKeySpec(keyData,"Blowfish"); Ciphercipher=Cipher.getInstance("Blowfish"); cipher.init(Cipher.DECRYPT_MODE,secretKeySpec); byte[] hasil =cipher.doFinal(new BASE64Decoder().decodeBuffer(string)); System.out.println(new String(hasil));
4.
} } 3. CaesarCipher package caesarcipher; importjava.io.*; publicclassCaesarCipher { publicstaticvoidmain(String[]args)
throwsException { Stringpt,ct; intkey=3; BufferedReaderbr= new BufferedReader(new InputStreamReader(System.in)); System.out.print("EnterPlainText:"); pt = br.readLine().toUpperCase(); ct = doEncrypt(pt,key); System.out.println("CipherText:" + ct); pt = doDecrypt(ct,key); System.out.println("DecryptedPlainText:" + pt); } staticString doEncrypt(Stringpt,intkey) {
5.
char c; intnum; StringBuffersb= newStringBuffer(pt); for(inti=0;i<sb.length();i++) { num=
sb.charAt(i)-65; num+=key; if(num>=26) num-=26; c = (char)(num+65); sb.setCharAt(i,c); } returnnewString(sb); } staticvoiddoDecrypt(Stringct,intkey) { returndoEncrypt(ct,26-key).toLowerCase(); } } 4. package des; importjava.io.*; importjavax.crypto.*;
6.
importjava.security.spec.*; importsun.misc.*; publicclassDES { publicstaticvoidmain(String[]args) throwsException { Stringpt,ct; SecretKeykey; BufferedReaderbr= new
BufferedReader(new InputStreamReader(System.in)); System.out.print("EnterPlainText:"); pt = br.readLine(); key= KeyGenerator.getInstance("DES").generateKey(); ct = doEncrypt(pt,key); System.out.println("CipherText:" + ct); pt = doDecrypt(ct,key); System.out.println("DecryptedPlainText:" + pt); } staticString doEncrypt(Stringpt,SecretKeykey)throwsException { Cipherc = Cipher.getInstance("DES"); c.init(Cipher.ENCRYPT_MODE,key);
7.
byte[] utf8= pt.getBytes("UTF8"); byte[]
enc= c.doFinal(utf8); Stringstr = newBASE64Encoder().encode(enc); returnstr; } staticString doDecrypt(Stringct,SecretKeykey)throwsException { Cipherc = Cipher.getInstance("DES"); c.init(Cipher.DECRYPT_MODE,key); byte[] enc= newBASE64Decoder().decodeBuffer(ct); byte[] utf8= c.doFinal(enc); Stringstr = newString(utf8,"UTF8"); returnstr; }etwork }
Download now