Changeset 264


Ignore:
Timestamp:
Mar 22, 2009, 11:31:04 AM (13 years ago)
Author:
Thomas Schmid
Message:
  • spelling corrections
  • sample updates
Location:
trunk
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/ScyTale/DetailedDescription/Description.xaml

    r256 r264  
    1616    <Paragraph Margin="0,0,0,0" TextAlignment="Left" FontFamily="Times New Roman" FontSize="16">
    1717      <Span Foreground="#FF0000FF" xml:lang="en-us">
    18         <misc:DescriptionHyperlink NavigateUri="http://en.wikipedia.org/wiki/Data_Encryption_Standard">http://en.wikipedia.org/wiki/Scytale</misc:DescriptionHyperlink>
     18        <misc:DescriptionHyperlink NavigateUri="http://en.wikipedia.org/wiki/Scytale">http://en.wikipedia.org/wiki/Scytale</misc:DescriptionHyperlink>
    1919      </Span>
    2020    </Paragraph>
  • trunk/CrypPlugins/ScyTale/ScyTale.cs

    r256 r264  
    44using Cryptool.PluginBase.Cryptography;
    55
    6 namespace Cryptool.SkyTale
     6namespace Cryptool.Scytale
    77{
    88    [Author("Fabian Enkler", "", "", "")]
    9     [PluginInfo(false, "ScyTale", "This the classical ScyTale cipher.", "ScyTale/DetailedDescription/Description.xaml", "ScyTale/icon.png")]
     9    [PluginInfo(false, "Scytale", "Scytale -- classic transposition cipher", "Scytale/DetailedDescription/Description.xaml", "Scytale/icon.png")]
    1010    [EncryptionType(EncryptionType.Classic)]
    11     class ScyTale : IEncryption
     11    public class Scytale : IEncryption
    1212    {
    13         private readonly ScyTaleSettings settings;
     13        private readonly ScytaleSettings settings;
    1414        private int CharsPerRow;
    1515
     
    1919        public event PluginProgressChangedEventHandler OnPluginProgressChanged;
    2020
    21         public ScyTale()
     21        public Scytale()
    2222        {
    23             this.settings = new ScyTaleSettings();
     23            this.settings = new ScytaleSettings();
    2424        }
    2525
    2626        private string inputString = string.Empty;
    27         [PropertyInfo(Direction.Input, "Text input", "Input a string to be processed by the SkyTale cipher", "", true, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
     27        [PropertyInfo(Direction.Input, "Text input", "Input a string to be processed by the Scytale cipher", "", true, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
    2828        public string InputString
    2929        {
     
    4040
    4141        private string outputString = string.Empty;
    42         [PropertyInfo(Direction.Output, "Text output", "The string after processing with the SkyTale cipher", "", false, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
     42        [PropertyInfo(Direction.Output, "Text output", "The string after processing with the Scytale cipher", "", false, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
    4343        public string OutputString
    4444        {
  • trunk/CrypPlugins/ScyTale/ScyTale.csproj

    r262 r264  
    1010    <AppDesignerFolder>Properties</AppDesignerFolder>
    1111    <RootNamespace>$safeprojectname$</RootNamespace>
    12     <AssemblyName>ScyTale</AssemblyName>
     12    <AssemblyName>Scytale</AssemblyName>
    1313    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    1414    <FileAlignment>512</FileAlignment>
     
    5858  <ItemGroup>
    5959    <Compile Include="Properties\AssemblyInfo.cs" />
    60     <Compile Include="ScyTale.cs" />
    61     <Compile Include="ScyTaleSettings.cs" />
     60    <Compile Include="Scytale.cs" />
     61    <Compile Include="ScytaleSettings.cs" />
    6262  </ItemGroup>
    6363  <ItemGroup>
     
    9292if not exist "./CrypPlugins" mkdir "./CrypPlugins"
    9393
    94 del /F /S /Q /s /q "ScyTale.*"
    95 copy "$(TargetDir)ScyTale.*" "./CrypPlugins"</PostBuildEvent>
     94del /F /S /Q /s /q "Scytale.*"
     95copy "$(TargetDir)Scytale.*" "./CrypPlugins"</PostBuildEvent>
    9696  </PropertyGroup>
    9797</Project>
  • trunk/CrypPlugins/ScyTale/ScyTaleSettings.cs

    r256 r264  
    33using Cryptool.PluginBase;
    44
    5 namespace Cryptool.SkyTale
     5namespace Cryptool.Scytale
    66{
    7     internal enum Action
     7
     8    public class ScytaleSettings : ISettings
    89    {
    9         Encrypt,
    10         Decrypt
    11     }
     10        private enum Actions
     11        {
     12          Encrypt,
     13          Decrypt
     14        }
    1215
    13     class ScyTaleSettings : ISettings
    14     {
    15         private Action action = SkyTale.Action.Encrypt;
     16        private Actions action = Actions.Encrypt;
    1617        [ContextMenu("Action","Select the Algorithm action",0,DisplayLevel.Beginner,ContextMenuControlType.ComboBox,null, new [] { "Encrypt", "Decrypt" })]
    1718        [TaskPane("Action", "Select the Algorithm action", null, 0, false, DisplayLevel.Beginner, ControlType.ComboBox, new [] { "Encrypt", "Decrypt" })]
     
    2324                try
    2425                {
    25                     action = (Action)value;
     26                    action = (Actions)value;
    2627                    OnPropertyChanged("Action");
    2728                }
    2829                catch (Exception)
    2930                {
    30                     action = SkyTale.Action.Encrypt;
     31                    action = Actions.Encrypt;
    3132                }
    3233            }
Note: See TracChangeset for help on using the changeset viewer.