Download Now
Forums

    Reference Codebot.Cryptography.pas

    Part of the Codebot package

    The Codebot.Cryptography unit computes hashes. HashString, HashBuffer, HashStream, and HashFile compute the MD5, SHA1, SHA256, or SHA512 digest of a string, memory, a stream, or a file, and AuthString, AuthBuffer, AuthStream, and AuthFile compute an HMAC digest of each using a key. DigestToStr turns a digest into text you can show or store.

    The unit also gives you Encrypt and Decrypt, which obscure a string using a simple method. They are not secure, so don't use them 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