Package nxt.crypto

Class EncryptedData


  • public final class EncryptedData
    extends java.lang.Object
    • Constructor Detail

      • EncryptedData

        public EncryptedData​(byte[] data,
                             byte[] nonce)
    • Method Detail

      • encrypt

        public static EncryptedData encrypt​(byte[] plaintext,
                                            java.lang.String secretPhrase,
                                            byte[] theirPublicKey)
      • readEncryptedData

        public static EncryptedData readEncryptedData​(byte[] bytes)
      • getEncryptedDataLength

        public static int getEncryptedDataLength​(byte[] plaintext)
      • getEncryptedSize

        public static int getEncryptedSize​(byte[] plaintext)
      • decrypt

        public byte[] decrypt​(java.lang.String secretPhrase,
                              byte[] theirPublicKey)
      • getData

        public byte[] getData()
      • getNonce

        public byte[] getNonce()
      • getSize

        public int getSize()
      • getBytes

        public byte[] getBytes()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object