-- © Copyright 2000 by John Halleck, All Rights Reserved. -- Convert SHA_0 digests to printable strings. package SHA_0.Strings is pragma Pure (SHA_0.Strings); -- Standard (Uppercase) Hex. type Hex_SHA_String is new String (1 .. (Bits_In_Digest / 8) * 2); -- Network Base 64 encoding. (See the Mime standard) type B64_SHA_String is new String (1 .. ((Bits_In_Digest / 8) + 2) / 3 * 4); -- And the routines to fill in the above. function Hex_From_SHA (Given : Digest) return Hex_SHA_String; function B64_From_SHA (Given : Digest) return B64_SHA_String; end SHA_0.Strings;
This page is http://www.cc.utah.edu/~nahaj/ada/sha/sha-0/sha_0-strings.ads.html
© Copyright 2000 by John Halleck, All Rights Reserved.
This snapshot was last modified on August 23rd, 2000