Example #1
0
        public static EncryptedText Encrypt(this string textToEncrypt)
        {
            var encryptionKey = AppInstance.Instance.ApiAssets[Constants.ASSET_ADMIN_ENCRYPTIONKEY];
            var plainText     = new PlainText(textToEncrypt);

            return(plainText.Encrypt(encryptionKey));
        }
Example #2
0
 public string SolveChallenge()
 {
     return(_plainText.Encrypt(_encryptor, _key));
 }