Beispiel #1
0
 public static IObservable <byte[]> EncryptAESWithECBAsync(byte[] src, byte[] key)
 {
     byte[] dst = null;
     return(Observable.Start(() => Utility.EncryptAESWithECB(src, out dst, key))
            .ObserveOnMainThread()
            .Select(_ => dst));
 }
Beispiel #2
0
        public static IObservable <string> EncryptAESWithECBAsync(string src, string key)
        {
            string dst = null;

            return(Observable.Start(() => Utility.EncryptAESWithECB(src, out dst, key))
                   .ObserveOnMainThread()
                   .Select(_ => dst));
        }