Home
Add Document
Sign In
Register
Rail – Fence Cipher
Home
Rail – Fence Cipher
Rail – Fence Cipher Implementation using Java...
Author:
Dil Prasad Kunwar
49 downloads
499 Views
80KB Size
Report
DOWNLOAD .PDF
Recommend Documents
Transposition Cipher
Transposition Cipher implementation using Java
Cipher Aliran
Full description
Playfair Cipher
Playfair Cipher Implementation using Java.
Vernam Cipher
Vernam Cipher implementation using Java.
Caesar Cipher
Java code for Caesar Cipher
Cipher Formula
Descrição: music theory chiper formula for guitar
Feistel Cipher
Program for Feistel CipherDescripción completa
Cipher Programs
using c++Full description
Automated Electric Fence
Automated Electric Fence
Rail
The Copiale Cipher (2011)
Caesar Cipher - Java Coding
This document includes coding related to Caesar Cipher - Cryptography.
Ringkasan Materi Block Cipher
Deskripsi lengkap
CiPHER High Quality
THE CIPHER OF GENESIS.pdf
Code Summary Whirlpool Cipher
MATLAB implementation of Whirlpool Cipher
Ringkasan Materi Block Cipher
Full description
The Golden Dawn Cipher Manuscript
A rendition of the Golden Dawn Cipher Manuscript, With translations, added illustrations, various commentary, rants, and opinion.Descrição completa
Common Rail
Deskripsi lengkap
Common Rail
Metro Rail
metro rail
Common Rail
Descripción completa
Common Rail
Descripción completa
Rail Roading
rail roadingDeskripsi lengkap
Name: Dil Prasad Kuwor Roll no. : 064/02 Subject: Cryptography Assignment no. : Lab No. 2
Date: 9/27/2010
Q.5 Encrypt the text “WE ARE DISCOVERED FLEE AT ONCE”, to Rail – Fence Cipher, using 3
rails. Cipher Text: - WECRL TEERD SOEEF EAOCA IVDEN Java Code: import java.util.*; class RailFenceCipher RailFenceCipher { public static void main (String[] args) { Scanner in = new Scanner(System.in); int i=0,j,l,r,s,c=0,t=0; String plainText=" ",cipherText=""; System.out.println("******RAIL-FEN System.out.println("******RAIL-FENCE CE CIPHER******"); System.out.println("Enter System.out.println("Enter the plaintext:"); plainText=in.nextLine(); System.out.println("Enter System.out.println("Enter the Rails:"); r=in.nextInt(); l=plainText.length()/r; s=2*l; char ct[][]=new char [r][s]; while(i
=0;j--) { ct[j][c]=plainText.charAt(t); t++; if(j==0&&t<=plainText.length()-1) { c++; i=0; } } } i=i+1; } for(i=0;i
{ char d=ct[i][j]; d=ct[i][j]; if(d=='\0') { continue; } else { cipherText=cipherText+ct[i][j]; } } } System.out.println("The System.out.println("The Cipher text is:\n"+cipherText); System.out.println(cipherText.length()); } } Output:
The
End
2
×
Report "Rail – Fence Cipher"
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
×
Sign In
Email
Password
Remember me
Forgot password?
Sign In
Our partners will collect data and use cookies for ad personalization and measurement.
Learn how we and our ad partner Google, collect and use data
.
Agree & close