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

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