Comments for Auto-Magical http://automagical.rationalmind.net n. 1: automatic, but with an element of magic. 2: too complex to understand and/or explain Fri, 04 Mar 2016 06:52:31 +0000 hourly 1 Comment on AES interoperability between .Net and iPhone by Kumar http://automagical.rationalmind.net/2009/02/12/aes-interoperability-between-net-and-iphone/#comment-22409 Fri, 04 Mar 2016 06:52:31 +0000 http://dotmac.rationalmind.net/?p=96#comment-22409 Hi All,

we have RijndaelManaged algorithm written in .net. same thing I wanted to convert in objective c . Please help me on this.

Please find the c charp code.

private string EncryptKey(string key)
{
byte[] objIV = null;
byte[] objSecretKey = null;
string strSecretKey = GetConfigValue(MyPatients.Utils.Constants.SECRET_KEY);
string strIVKey = GetConfigValue(MyPatients.Utils.Constants.IV_KEY);
string strEncrypted = null;

if ((strSecretKey.Length > 0))
{
objSecretKey = HexToByte(strSecretKey);
}

if ((strIVKey.Length > 0))
{
objIV = HexToByte(strIVKey);
}

byte[] aibUrlArray = System.Text.Encoding.UTF8.GetBytes(key);
byte[] EncryptedStringArray = null;

// instantiate a Rijndael Object
RijndaelManaged objRijndael = new RijndaelManaged();

// initializing the Rijndael Encryptor
objRijndael.Mode = CipherMode.CBC;
objRijndael.Padding = PaddingMode.PKCS7;
objRijndael.KeySize = 256;
objRijndael.BlockSize = 128;

// Creating an encryptor
ICryptoTransform objEncryptor = objRijndael.CreateEncryptor(objSecretKey, objIV);

// Creating a memory string
System.IO.MemoryStream objMemoryStream = new System.IO.MemoryStream();
CryptoStream objCryptoStream = new CryptoStream(objMemoryStream, objEncryptor, CryptoStreamMode.Write);

objCryptoStream.Write(aibUrlArray, 0, aibUrlArray.Length);
objCryptoStream.FlushFinalBlock();

// Encrypted data to the array
EncryptedStringArray = objMemoryStream.ToArray();

// Create the encrypted string:
strEncrypted = ByteToHex(EncryptedStringArray);

return strEncrypted;
}

Thanks in advance.

I tried to download the zip but it is giving me error.

]]>
Comment on Correct photo orientation using EXIF data with C# by Cagri Celikbilek http://automagical.rationalmind.net/2009/08/25/correct-photo-orientation-using-exif/#comment-22217 Thu, 07 Jan 2016 21:21:55 +0000 http://dotmac.rationalmind.net/?p=118#comment-22217 thank you David 😉

]]>
Comment on AES interoperability between .Net and iPhone by Arun http://automagical.rationalmind.net/2009/02/12/aes-interoperability-between-net-and-iphone/#comment-22106 Thu, 05 Nov 2015 13:58:57 +0000 http://dotmac.rationalmind.net/?p=96#comment-22106 i want same for android and cordova

]]>
Comment on FEE.org Project Retrospective Part 3: tools for managing software projects by FEE.org Project Retrospective Part 1: Six Secrets to Better Productivity for Independent Developers | Auto-Magical http://automagical.rationalmind.net/2015/09/28/fee-org-project-retrospective-part-3-best-practices-tools-managing-self-managed-projects/#comment-22057 Tue, 29 Sep 2015 01:03:26 +0000 http://automagical.rationalmind.net/?p=964#comment-22057 […] Best-practices and tools for managing independent software projects. […]

]]>
Comment on FEE.org Project Retrospective Part 1: Six Secrets to Better Productivity for Independent Developers by FEE.org Project Retrospective Part 3: tools for managing software projects | Auto-Magical http://automagical.rationalmind.net/2015/09/08/fee-org-project-retrospective-part-1-secrets-productivity-independent-developers/#comment-22056 Tue, 29 Sep 2015 01:02:48 +0000 http://automagical.rationalmind.net/?p=904#comment-22056 […] is the third part in my series on the migration of fee.org to Umbraco.  This post will cover the tools and processes I used to […]

]]>
Comment on Project highlight: Mises.org Multimedia CMS by FEE.org Project Retrospective Part 2: Content Management Systems: Umbraco, WordPress, or Custom? | Auto-Magical http://automagical.rationalmind.net/2012/04/10/project-highlight-mises-org-multimedia-cms/#comment-22054 Thu, 10 Sep 2015 16:54:45 +0000 http://dotmac.rationalmind.net/?p=704#comment-22054 […] it through the latest Microsoft technologies for just over 10 years.  (More on this project here.) It was a great learning experience to build the site from a simple article archive to a million+ […]

]]>
Comment on FEE.org Project Retrospective Part 1: Six Secrets to Better Productivity for Independent Developers by FEE.org Project Retrospective Part 2: Content Management Systems: Umbraco, WordPress, or Custom? | Auto-Magical http://automagical.rationalmind.net/2015/09/08/fee-org-project-retrospective-part-1-secrets-productivity-independent-developers/#comment-22053 Thu, 10 Sep 2015 16:53:45 +0000 http://automagical.rationalmind.net/?p=904#comment-22053 […] FEE.org Project Retrospective Part 1: Six Secrets to Better Productivity for Independent Developers […]

]]>
Comment on AES interoperability between .Net and iPhone by Ricardo Órfão http://automagical.rationalmind.net/2009/02/12/aes-interoperability-between-net-and-iphone/#comment-21062 Mon, 03 Aug 2015 19:49:46 +0000 http://dotmac.rationalmind.net/?p=96#comment-21062 The link is not working. Can you provide a new one? Thank you.

]]>
Comment on Some lesser-known truths about programming by “Priority Inversion” in Software Engineering Management: Misconceptions of Wasted Time | Software Development News, Events, Thoughts from Auriga http://automagical.rationalmind.net/2010/08/17/some-lesser-known-truths-about-programming/#comment-19321 Mon, 13 Apr 2015 21:08:05 +0000 http://dotmac.rationalmind.net/?p=291#comment-19321 […] Some Lesser-known Truths About Programming (http://automagical.rationalmind.net/2010/08/17/some-lesser-known-truths-about-programming/) […]

]]>
Comment on Open Source Bitcoin Trading Engine by shivam http://automagical.rationalmind.net/2013/08/30/open-source-bitcoin-trading-engine/#comment-18648 Fri, 06 Mar 2015 15:23:28 +0000 http://automagical.rationalmind.net/?p=879#comment-18648 Really nice design and would like to see your code, I would like to chat with you and discuss further on this project. get back to me. Looking forward to hear from you soon.

]]>