FunctionPackage: exclToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.0
Unrevised from 9.0 to 10.0.
9.0 version

sha256-string

Arguments: string &key start end external-format return

Using sha256-init (which creates a context), sha256-update (which updates the context with the argument string), and sha256-final (which finalizes the hash), this function computes the SHA256 hash for string.

The start and end arguments specify the portion of the string to be considered and the external-format argument specifies the external hashing 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 sha256-update.

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

cl-user(4): (sha256-string "foo")  ;; default return format :integer
19970150736239713706088444570146546354146685096673408908105596072151101138862
cl-user(5): (sha256-string "foo" :return :usb8)
#(44 38 180 107 104 255 198 143 249 155 ...)
cl-user(6): 

MD*, SHA*, HMAC, and other message digest support in miscellaneous.htm. See also digest-string.


Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 9.0 page.
Created 2015.5.21.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.0
Unrevised from 9.0 to 10.0.
9.0 version