The Server-Side ActionScript SHA256 class is a symmetric port of the Flex® SDK mx.util.SHA256 utility class. Use this class to generate a digest, or signature, for binary data. A receiver of the data can compute its own digest and compare that to the original digest value to ensure that the binary data has not been tampered with.

Method

Description

SHA256.computeDigest()

Uses the SHA-256 hash algorithm to compute the digest of a message.

SHA256.computeDigest()

 SHA256.computeDigest(bytes)

Uses the SHA-256 hash algorithm to compute the digest of a message.

The function throws a JavaScript Error if the bytes argument is null or not a ByteArray.

Availability

Flash Media Server 4

Parameters

bytes

A ByteArray containing the message.

Returns

A String that is a 64 character hexadecimal representation of the digest.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy