diff options
author | Camil Staps | 2015-04-23 08:54:05 +0200 |
---|---|---|
committer | Camil Staps | 2015-04-23 08:54:05 +0200 |
commit | 90fa4477cfea8392b91f9f49e416626660026133 (patch) | |
tree | be0107b5fa8ebf53d66b80e6a6159c75f638da22 | |
parent | Decryption working (diff) |
Updated license with personal details & added it
-rw-r--r-- | LICENSE | 4 | ||||
-rw-r--r-- | pypride.py | 23 |
2 files changed, 20 insertions, 7 deletions
@@ -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 @@ -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')) |