Monday, November 4, 2013

Home /PowerShell /script / Caesar Cipher Encryption – PowerShell Scripts

Caesar Cipher Encryption – PowerShell Scripts

While studying the Caesar Cipher encryption, I came up with this idea of creating a script using PowerShell V1.0.  I have created two PowerShell scripts. First script will generate an encrypted message based on an automatically selected key 0 - 25.  The second script will prompt you to enter a plain text and key.  Enjoy!


Script #1 - This script will generate an encrypted message based on your input - plain text.

As shown in the following screenshot, it will ask you to enter a plain text. 

clip_image0021[1]

 

You don’t need to specify a key.  The script will automatically select a key from 0 to 25.   Output will have the Key and Encrypted text as shown in the following screenshot:

clip_image002[7]

You can download the script from the following location: 

clip_image002

Here is another example of the output.  In this example the plain text was a-z (Key 0)

clip_image002[9]


Script #2 - This script will generate an encrypted message based on your input - plain text and key. 

Unlike the script #1, it will ask you for both plain text and the key.

clip_image002[1]

clip_image002[11]

Output will have Key, Pain text and the Encrypted text. 

clip_image002[7]

This script can be downloaded from the following location:

clip_image002[9]


Download:

Script #1 - https://skydrive.live.com/?mkt=en-US&ppud=4#cid=FD1B4F30721044E5&id=FD1B4F30721044E5%21117

Script #2 - https://skydrive.live.com/?mkt=en-US&ppud=4#cid=FD1B4F30721044E5&id=FD1B4F30721044E5%21118


SS

Santhosh Sivarajan

Microsoft MVP · Identity & Cybersecurity Architect

Santhosh has 30+ years of hands-on enterprise experience in Identity and Access Management, Microsoft Entra ID, Active Directory, Microsoft 365 and Zero Trust architecture. He is the author of two books on Windows Server and security, and leads consulting, assessments and training at SAG Business Group.

3 comments:

here is the code for caesar cipher http://code2begin.blogspot.com/2017/08/data-encryption-using-caesar-cipher.html

You can learn how to work with the help of courses or just tutorials from the Internet. after I managed to learn how to write essays and other papers with the help of courses from the service that proposes cheetahpapers.com write my essay 4 me, I believed in tutorials, YouTube courses and other formats of presenting information.

Post a Comment

Popular Posts
Workstation Trust Relationship Issue Issue: You receive the following error message, when you try to login to the domain.  The security database on the server does not have ... ADMT Service Account - Permission and Configuration The ADMT service account needs to have proper permission in source and target domains.  You don’t need to use 2 separate accounts.  You can ... My First Peek into Microsoft Exchange 2010 By Santhosh Sivarajan Before I really dive into Exchange 2010, I thought I would install and play with it first. I took some screen shots and notes during the ins... ObjectSID and Active Directory What is an objectSID in Active Directory? When a new object is created in Active Directory, Domain Controller assigns a unique value used ... AD Group Report - List Group Members in Active Directory–PowerShell Script Updated Script - http://portal.sivarajan.com/2011/10/search-ad-collect-local-admin-group.html Script #1 This script... Add Users to a Group–PowerShell Script Purpose – Add users to a group from an input file – PowerShell V2 Script.  Input file – Input file (Users.csv) contains samAccountName in... User Account Migration and Merging – Part I (ADMT) Part I - User Account Migration and Merging Using ADMT Part II - User Account Migration and Merging Using QMM pre-creating user account ... User Account Migration and Merging – Part II (Quest Migration Manager) Part I - User Account Migration and Merging Using ADMT Part II - User Account Migration and Merging Using QMM Pre-creating user account in... Delete Stale or Inactive Computer Accounts from Active Directory Here is an easy way to identify and delete inactive or stale computers in an Active Directory environment.  Using the dsquery command you c... Converting PowerShell (PS1) to EXE / Standalone Application As we know, there many applications available to convert a PowerShell file to a standalone executable file.  Based on my experience, PowerSh...