Class OctoTrustAES
java.lang.Object
love.distributedrebirth.nx01.no2all.nostr.octo.trust.OctoTrustAES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IvParameterSpec
static SecretKey
createSecretPassword
(char[] password, byte[] salt) static byte[]
decrypt
(byte[] data, SecretKey key, IvParameterSpec iv) static byte[]
encrypt
(byte[] data, SecretKey key, IvParameterSpec iv) static boolean
isSecretPasswordValid
(char[] password, byte[] salt)
-
Constructor Details
-
OctoTrustAES
public OctoTrustAES()
-
-
Method Details
-
createRandomIv
-
isSecretPasswordValid
public static boolean isSecretPasswordValid(char[] password, byte[] salt) -
createSecretPassword
-
encrypt
-
decrypt
-