WIP desktop client for Chatto reimplemented in ScalaFX and Sapphire Framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

11 lines
277 B

package wow.doge.chatto.service
import wow.doge.chatto.model.MessageCipher
import scala.util.Try
trait EncryptionService {
def encrypt(password: String, plainText: String): String Either MessageCipher
def decrypt(password: String, cipher: MessageCipher): Try[String]
}