Exemple #1
0
        // To retrieve (last used) IDC
        public static string getLastUsedIDC()
        {
            byte[] ccd     = CryptoUtils.getCCD();
            byte[] idcData = AES256.decryptDataAndGetFromMem(StorageUtils.kLastUsedIDC, ccd);

            if (idcData != null)
            {
                string result = CryptoUtils.toHexStringFromBytes(idcData);
                result = result.Replace(" ", "").Replace("<", "").Replace(">", "");
                return(result);
            }

            return(null);
        }