AdbBase64.java 516 B

123456789101112131415161718
  1. package org.las2mile.scrcpy.adblib;
  2. /**
  3. * This interface specifies the required functions for AdbCrypto to
  4. * perform Base64 encoding of its public key.
  5. *
  6. * @author Cameron Gutman
  7. */
  8. public interface AdbBase64 {
  9. /**
  10. * This function must encoded the specified data as a base 64 string, without
  11. * appending any extra newlines or other characters.
  12. *
  13. * @param data Data to encode
  14. * @return String containing base 64 encoded data
  15. */
  16. public String encodeToString(byte[] data);
  17. }