Class Nip49
java.lang.Object
org.ngengine.nostr4j.nip49.Nip49
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.ngengine.platform.AsyncTask<NostrPrivateKey> static org.ngengine.platform.AsyncTask<NostrPrivateKey> static NostrPrivateKeydecryptSync(String ncryptsec, String password) static NostrPrivateKeydecryptSync(String ncryptsec, String password, int memoryLimitBytes) static org.ngengine.platform.AsyncTask<String> encrypt(NostrPrivateKey priv, String password) static org.ngengine.platform.AsyncTask<String> encrypt(NostrPrivateKey priv, String password, int logn, int memoryLimitBytes) static StringencryptSync(NostrPrivateKey priv, String password) static StringencryptSync(NostrPrivateKey priv, String password, int logn, int memoryLimitBytes) static longgetApproximatedMemoryRequirement(int logn) static booleanisEncrypted(String bech32)
-
Constructor Details
-
Nip49
public Nip49()
-
-
Method Details
-
getApproximatedMemoryRequirement
public static long getApproximatedMemoryRequirement(int logn) -
encryptSync
- Throws:
Nip49FailedException
-
isEncrypted
-
encryptSync
public static String encryptSync(NostrPrivateKey priv, String password, int logn, int memoryLimitBytes) throws Nip49FailedException - Throws:
Nip49FailedException
-
decryptSync
public static NostrPrivateKey decryptSync(String ncryptsec, String password) throws Nip49FailedException - Throws:
Nip49FailedException
-
decryptSync
public static NostrPrivateKey decryptSync(String ncryptsec, String password, int memoryLimitBytes) throws Nip49FailedException - Throws:
Nip49FailedException
-
encrypt
public static org.ngengine.platform.AsyncTask<String> encrypt(NostrPrivateKey priv, String password) -
decrypt
public static org.ngengine.platform.AsyncTask<NostrPrivateKey> decrypt(String ncryptsec, String password) -
decrypt
public static org.ngengine.platform.AsyncTask<NostrPrivateKey> decrypt(String ncryptsec, String password, int memoryLimitBytes) -
encrypt
public static org.ngengine.platform.AsyncTask<String> encrypt(NostrPrivateKey priv, String password, int logn, int memoryLimitBytes)
-