mirror of
https://github.com/vanitasvitae/EnigmAndroid.git
synced 2025-09-10 02:39:40 +02:00
Finally removed the "bug" with the bad encryption; It was a known anomaly in the historical enigma machine that I oversaw. So I added this "historical bug" as a feature to the enigma. Thanks to the author of the java script version of the enigma machine for the hint :)
This commit is contained in:
parent
2e891d8213
commit
e3ea69fd3c
13 changed files with 873 additions and 630 deletions
|
@ -18,25 +18,25 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/hint_ukw"/>
|
||||
android:text="@string/hint_reflector"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/hint_w3"/>
|
||||
android:text="@string/hint_rotor3"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/hint_w2"/>
|
||||
android:text="@string/hint_rotor2"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/hint_w1"/>
|
||||
android:text="@string/hint_rotor1"/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
@ -49,25 +49,25 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/ukw">
|
||||
android:id="@+id/reflector">
|
||||
</Spinner>
|
||||
<Spinner
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/w3">
|
||||
android:id="@+id/rotor3">
|
||||
</Spinner>
|
||||
<Spinner
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/w2">
|
||||
android:id="@+id/rotor2">
|
||||
</Spinner>
|
||||
<Spinner
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/w1">
|
||||
android:id="@+id/rotor1">
|
||||
</Spinner>
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -86,19 +86,19 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/hint_w3pos"/>
|
||||
android:text="@string/hint_rotor3_position"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/hint_w2pos"/>
|
||||
android:text="@string/hint_rotor2_position"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/hint_w1pos"/>
|
||||
android:text="@string/hint_rotor1_position"/>
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".125"
|
||||
|
@ -120,19 +120,19 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/w3pos">
|
||||
android:id="@+id/rotor3position">
|
||||
</Spinner>
|
||||
<Spinner
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/w2pos">
|
||||
android:id="@+id/rotor2position">
|
||||
</Spinner>
|
||||
<Spinner
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".25"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/w1pos">
|
||||
android:id="@+id/rotor1position">
|
||||
</Spinner>
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
|
@ -158,7 +158,7 @@
|
|||
android:layout_weight=".50"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/input"
|
||||
android:hint="@string/hint_enigma_usertype" />
|
||||
android:hint="@string/hint_enigma_type_here" />
|
||||
|
||||
<EditText
|
||||
android:layout_width="0dp"
|
||||
|
@ -180,7 +180,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/text_layer"
|
||||
android:id="@+id/button_crypt"
|
||||
android:onClick="crypto"
|
||||
android:onClick="doCrypto"
|
||||
android:text="@string/button_crypt"/>
|
||||
</LinearLayout>
|
||||
|
||||
|
|
55
app/src/main/res/layout/dialog_ringsettings.xml
Normal file
55
app/src/main/res/layout/dialog_ringsettings.xml
Normal file
|
@ -0,0 +1,55 @@
|
|||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/ringstellung_layout_hint">
|
||||
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="33"
|
||||
android:text="@string/hint_rotor3"
|
||||
android:layout_height="wrap_content"/>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="33"
|
||||
android:text="@string/hint_rotor2"
|
||||
android:layout_height="wrap_content"/>
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="33"
|
||||
android:text="@string/hint_rotor1"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/ringstellung_layout_hint"
|
||||
android:id="@+id/ringstellung_layout">
|
||||
|
||||
<Spinner
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".33"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/rotor3ring">
|
||||
</Spinner>
|
||||
<Spinner
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".33"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/rotor2ring">
|
||||
</Spinner>
|
||||
<Spinner
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight=".33"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/rotor1ring">
|
||||
</Spinner>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
Loading…
Add table
Add a link
Reference in a new issue