Package nxt.crypto

Class AnonymouslyEncryptedData


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

      • AnonymouslyEncryptedData

        public AnonymouslyEncryptedData​(byte[] data,
                                        byte[] publicKey)
    • Method Detail

      • encrypt

        public static AnonymouslyEncryptedData encrypt​(byte[] plaintext,
                                                       java.lang.String secretPhrase,
                                                       byte[] theirPublicKey,
                                                       byte[] nonce)
      • decrypt

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

        public byte[] decrypt​(byte[] keySeed,
                              byte[] theirPublicKey)
      • getData

        public byte[] getData()
      • getPublicKey

        public byte[] getPublicKey()
      • getSize

        public int getSize()
      • getBytes

        public byte[] getBytes()
      • toString

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