Пример #1
0
 public CTO<HashCrackResponseItem> CrackHashes(HashCrackRequestItem requestItem)
 {
     try {
         return new CTO<HashCrackResponseItem>(null);
     } catch (Exception ex) {
         return new CTO<HashCrackResponseItem>(null, ex);
     }
 }
Пример #2
0
        public async Task<CTO<bool>> SubmitHashes() {
            var hashHandler = new HashHandler();

            var requestItem = new HashCrackRequestItem();

            requestItem.HashType = HashTypes.MD5;
            requestItem.MaximumLength = 50;
            requestItem.MinimumLength = 1;
            requestItem.Hashes = new List<string> { Hashes };

            ; var result = await hashHandler.SubmitHashes(requestItem);

            if (result.HasError) {
                return new CTO<bool>(false, result.Exception);
            }

            return new CTO<bool>(true);
        }
Пример #3
0
 public CTO<HashCrackResponseItem> POST(HashCrackRequestItem requestItem)
 {
     return ReturnResponse(new HashManager().CrackHashes(requestItem), WebAPIResponses.HASH_CRACK_RESPONSE);
 }
Пример #4
0
 public async Task<CTO<HashCrackResponseItem>> SubmitHashes(HashCrackRequestItem requestItem) {
     return await POST<HashCrackRequestItem, CTO<HashCrackResponseItem>>(string.Empty, requestItem);
 }