tencent cloud

Feedback

Getting File Hash Value - hash

Last updated: 2022-05-03 11:04:52

    The hash command is used to calculate the hash value of a local file or get the hash value of a file in COS.

    Command Syntax

    ./coscli hash <object-name> [flag]
    
    Note:

    The hash command contains the following optional flags:

    Flag Abbreviation Flag Full Name Description
    None --type Hash type, which can be MD5 or CRC64 (default)

    Examples

    Calculating the CRC64 value of local file

    ./coscli hash ~/test.txt
    

    Getting the MD5 value of COS file

    ./coscli hash cos://bucket1/example.txt --type=md5
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support