public class Salsa20 extends Object implements ProtectedStringCrypto
| Modifier and Type | Method and Description |
|---|---|
static Salsa20 |
createInstance(byte[] protectedStreamKey) |
String |
decrypt(String protectedString)
Decrypts a given encrypted string and returns it.
|
String |
encrypt(String plainString)
Encrypts a given string and returns it.
|
public static Salsa20 createInstance(byte[] protectedStreamKey)
public String decrypt(String protectedString)
ProtectedStringCryptodecrypt in interface ProtectedStringCryptoprotectedString - the encrypted stringpublic String encrypt(String plainString)
ProtectedStringCryptoencrypt in interface ProtectedStringCryptoplainString - the unencrypted stringCopyright © 2016. All rights reserved.