### Question:
Crypto { public static byte[] sign(byte[] message, String secretPhrase) { return sign(message, sha256().digest(Convert.toBytes(secretPhrase))); } private  Crypto(); static SecureRandom getSecureRandom(); static MessageDigest getMessageDigest(String algorithm); static MessageDigest sha256(); static MessageDigest sha512(); static MessageDigest ripemd160(); static MessageDigest sha3(); static byte[] getKeySeed(String secretPhrase, byte[]... nonces); static byte[] getKeySeed(byte[] secretBytes, byte[]... nonces); static byte[] getPublicKey(byte[] keySeed); static byte[] getPublicKey(String secretPhrase); static byte[] getPrivateKey(byte[] keySeed); static byte[] getPrivateKey(String secretPhrase); static void curve(byte[] Z, byte[] k, byte[] P); static byte[] sign(byte[] message, String secretPhrase); static byte[] sign(byte[] message, byte[] keySeed); static boolean verify(byte[] signature, byte[] message, byte[] publicKey); static byte[] getSharedKey(byte[] myPrivateKey, byte[] theirPublicKey); static byte[] getSharedKey(byte[] myPrivateKey, byte[] theirPublicKey, byte[] nonce); static byte[] aesEncrypt(byte[] plaintext, byte[] key); static byte[] aesGCMEncrypt(byte[] plaintext, byte[] key); static byte[] aesDecrypt(byte[] ivCiphertext, byte[] key); static byte[] aesGCMDecrypt(byte[] ivCiphertext, byte[] key); static String rsEncode(long id); static long rsDecode(String rsString); static boolean isCanonicalPublicKey(byte[] publicKey); static boolean isCanonicalSignature(byte[] signature); static FBElGamalKeyPair getElGamalKeyPair(); static String elGamalDecrypt(String cryptogramm, FBElGamalKeyPair keyPair); static String elGamalEncrypt(String plainText, FBElGamalKeyPair keyPair);  }### Answer:
@Test public void testSign_byteArr_String() throws IOException { byte[] message = plain_data; byte[] expResult = Convert.parseHexString("f565212c53a668006fbdb12c512e51f7add8118e6573d5c7261e9f58944e5c0b0ae76275210b795915a3017852fe8bca1a3cd2d2b02b32a51e0e03b18e6335f8"); byte[] result = Crypto.sign(message, secretPhraseA); assertArrayEquals(expResult, result); writeToFile(ByteBuffer.wrap(result), TST_OUT_DIR+OUT_FILE_SIGN_S); }