aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE4
-rw-r--r--pypride.py23
2 files changed, 20 insertions, 7 deletions
diff --git a/LICENSE b/LICENSE
index 8cdb845..4ff3195 100644
--- a/LICENSE
+++ b/LICENSE
@@ -290,8 +290,8 @@ to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
- {description}
- Copyright (C) {year} {fullname}
+ Python implementation of the PRIDE cipher
+ Copyright (C) 2015 Camil Staps (info@camilstaps.nl)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
diff --git a/pypride.py b/pypride.py
index ab90344..b7a38be 100644
--- a/pypride.py
+++ b/pypride.py
@@ -3,7 +3,24 @@
# Date: 22/04/2015
#
# =============================================================================
-# Copyright (c) 2015 Camil Staps (info@camilstaps.nl)
+#
+# Python implementation of the PRIDE cipher
+# Copyright (C) 2015 Camil Staps (info@camilstaps.nl)
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
# =============================================================================
class Pride:
@@ -293,10 +310,6 @@ def number2string_N(i, N):
s = '%0*x' % (N*2, i)
return s.decode('hex')
-def _test():
- import doctest
- doctest.testmod()
-
if __name__ == "__main__":
cipher = Pride("0000000000000000fedcba9876543210".decode('hex'))
encryption = cipher.encrypt("0123456789abcdef".decode('hex'))