Download Now

    Reference Codebot.Cryptography.pas

    Part of the Codebot package

    The Codebot.Cryptography unit provides routines for hashing data. It can compute the MD5, SHA1, SHA256, or SHA512 digest of a string, a block of memory, a stream, or a file, and it can compute an HMAC digest of each of those using a key. A digest can be converted to a string for display or storage.

    The unit also includes Encrypt and Decrypt, which obscure a string using a simple method. This method is not cryptographically secure and should not be used to protect sensitive data.

    Items 20 items

    NameKindLine
    AuthBufferfunction49
    AuthFilefunction53
    AuthStreamfunction51
    AuthStringfunction47
    Decryptfunction70
    DecryptSequencefunction72
    DigestToStrfunction35
    Encryptfunction68
    HashBufferfunction40
    HashFilefunction44
    HashStreamfunction42
    HashStringfunction38
    TDigestalias32
    TDigestHelperhelper58
    AuthNextfunction61
    THashKindenum28
    hashMD5enum value28
    hashSHA1enum value28
    hashSHA256enum value28
    hashSHA512enum value28