Simple string checksum

Category: Python - Blog

This one line function adds up the ascii values of a string and returns the total as a checksum. Also included is a variation which returns the checksum mod 256 (so it can be used as a single byte).The same technique can be used to add up a list of numbers, or to return the average of a list (examples are also included) or to do any other simple processing on a list or a string. Date: 14 January, 2012


String Checksum - Ascii Values Of A String - String Processing - String - Checksum - Ascii

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This script shows a simple (but not hopelessly fragile) approach for string substitution.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


This function allows you to process a string by one character at a time.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


With this class is it possible to check the whois information for domain names.

developer Developer: Olaf Lederer
license License: BSD License
operating systems Operating System: all


Keyboard Shortcut class can be used to bind functions to custom key combination.

developer Developer: Arturs Sosins
license License: BSD License
operating systems Operating System: Not Available


Verifies that a string looks like a real email address.

developer Developer: Francisco Charrua
license License: Freeware
operating systems Operating System: Linux, Unix, Windows


Verifies that a string looks like a real email address.

developer Developer: Francisco Charrua
license License: Freeware
operating systems Operating System: Linux, Unix, Windows


The outputs of this Cookie Script do not mix with other strings outcoming from other directory cookies , thanks to the variable assignment : var the_cookie = "MultipleInfos="+GetCookie("MultipleInfos"); This is a Programs'Set that finally shows clearly what value is returned to what function and has follow up comments on all used libraries.

developer Developer: Vittorio Ognissanti
license License: Freeware
operating systems Operating System: Linux, Unix, Windows


This message script changes any word or phrase into morse code, with dashes represented by underscores and dots represented by full stops.

developer Developer: javascriptkit.com
license License: Freeware
operating systems Operating System: All


rospell is a UTF-8 programming editor with spelling support for Romanian and English languages.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All