FunctionPackage: exclToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.1
Unrevised from 8.0 to 8.1.
8.0 version

sha1-string

Arguments: string &key start end external-format return

Using sha1-init (which creates a context), sha1-update (which updates the context with the argument string), and sha1-final (which calculates the checksum of the resulting context), this function computes the SHA1 digest for string.

The start and end arguments specify the portion of the string to be considered and the external-format argument specifies the external encoding of the string that will be used to update the context. start defaults to 0, end defaults to the length of string, and external-format defaults to the default external format. These arguments, along with string, are passed to sha1-update.

The format of the result, just as for sha1-final, is determined by the return keyword argument. The possible values are :integer, :usb8, and :hex. See sha1-final for information on these values and the corresponding formats of the returned value.

cl-user(4): (sha1-string "foo")  ;; default return format :integer
68123873083688143418383284816464454849230703155
cl-user(5): (sha1-string "foo" :return :usb8)
#(11 238 199 181 234 63 15 219 201 93 ...)
cl-user(6): 

See MD5, SHA1, HMAC, and RC4 support in miscellaneous.htm.


Copyright (c) 1998-2009, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 8.1. This page was not revised from the 8.0 page.
Created 2009.7.29.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.1
Unrevised from 8.0 to 8.1.
8.0 version