All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.serenitybdd.core.photography.ScreenshotDigest Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version
package net.serenitybdd.core.photography;

import org.apache.commons.codec.digest.DigestUtils;

public class ScreenshotDigest {

    public static String forScreenshotData(byte[] screenshotData) {
        return DigestUtils.sha256Hex(screenshotData) + ".png";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy