diff --git a/dpkg/DEBIAN/control b/dpkg/DEBIAN/control index d4885a4..1aa01fc 100644 --- a/dpkg/DEBIAN/control +++ b/dpkg/DEBIAN/control @@ -1,5 +1,5 @@ Package: sweecrypt-gtk -Version: 1.1 +Version: 1.2 Section: utils Priority: optional Architecture: all diff --git a/sweecrypt-gtk.py b/sweecrypt-gtk.py index cd21950..685ca2a 100644 --- a/sweecrypt-gtk.py +++ b/sweecrypt-gtk.py @@ -14,12 +14,13 @@ class GUI: checkbox.set_property("label", "Encode" if checkbox.get_property("active") else "Decode") def start_clicked(self, start): encode = self.builder.get_object('encode').get_property("active") + shift = int(self.builder.get_object('shift').get_property("value")) inputted = self.builder.get_object('text').get_property("text") if encode: - self.builder.get_object('text').set_property("text", sc.encrypt(inputted)) + self.builder.get_object('text').set_property("text", sc.encrypt(inputted, shift)) self.builder.get_object('encode').set_property("active", False) else: - self.builder.get_object('text').set_property("text", sc.decrypt(inputted)) + self.builder.get_object('text').set_property("text", sc.decrypt(inputted, shift)) self.builder.get_object('encode').set_property("active", True) def main(): app = GUI() diff --git a/sweecrypt-gtk.ui b/sweecrypt-gtk.ui index a1703bf..9d83ac2 100644 --- a/sweecrypt-gtk.ui +++ b/sweecrypt-gtk.ui @@ -2,6 +2,12 @@ + + -100 + 100 + 1 + 10 + replace this text with anything you want to encode or decode. @@ -51,6 +57,18 @@ you want to encode or decode. True + + False + True + 0 + + + + + True + False + Database shift: + False True @@ -72,6 +90,22 @@ you want to encode or decode. 2 + + + True + True + False + Database shift + database-shift + 1 + True + + + False + True + 3 + + False