AES Encryption No Longer Working

Last week we had users complaining that they could no longer connect to wireless.  They were receiving a limited or no connectivity message.  Upon researching the issue, I found that if I removed the AES encryption, from WPA2, users were able to connect again with TKIP.  In speaking to a few admins, they stated that TKIP was the preferred method that was chosen years ago.  My first question is this.....In our WLAN's, we had the options for WPA/TKIP-AES, and WPA2/TKIP-AES.  I'm assuming this would allow the PC to use whichever encryption method was preferred.  However, this doesn't seem to be the case.  The PC chose AES, which caused the issue that they were having.  Would this be something PC based?   I'm assuming the controller only gives the ability.  It won't actually dictate which encryption method is used, unless one of the options is turned off (like we did with AES).  My second question is this....TKIP, being a weaker encryption method, isn't what I want our users using.  How could I migrate to AES?  Are there specific instructions to move from TKIP to AES?  Is it more than just putting a check mark on the AES options, under WLAN security?  Thanks for any help!

Its best to only use either WPA/TKIP or WPA2/AES, not both or a mix of either.  This does cause issues with devices so its hit or miss.  If you had configured everything for WPA2/TKIP, well... your stuck with a non standard IEEE setting, and you will have to just configure that on the WLC.  It's the same if you were using WPA/AES.  
The best way to move to a standard, is if your devices were domain machines and you can push out a GPO.  Non domain machines, you would need to manually enter those unless you had a tool that manages them.

Similar Messages

  • Recently bought a new HDD, and encrypted it, and it no longer works on any machine, help?

    Recently bought a new HDD, and encryped it and it no longer works...
    Does anyone have any idea how or why?
    I can't seem to press anything except repair and verify...

    I followed what it said on another one of these discussion forums, by going onto the disk and changing it to encrypted, created a password then pressed erase, and it no longer will open at all, even on normal windows
    Sean

  • Search function no longer works when Mail folder is encrypted

    I posted a reply in another forum that has already been marked as answered...BUT I was not satisfied with the answer...Here is the link to that forum for some context:
    http://discussions.apple.com/thread.jspa?messageID=6362207&#6362207
    And here is basically what I posted there:
    This problem is a result of my attempt to put my User/Library/Mail folder onto an encrypted disk image, so that my mail images would be encrypted without having to encrypt my WHOLE Account with FileVault (rendering Time Machine virtually useless). Like many, I had to create a symbolic link from the terminal rather than use the Alias...that wasn't a problem. I can send/receive/read/write email all while it stays safely encrypted on the Sparse disk image that I created (by the way THANKYOU for making creating the sparse BUNDLE image an option, this makes it useable for time machine so it doesn't back up the whole thing)...Mail appeared to work perfectly with my folder in the new location
    HOWEVER...I quickly discovered that the search tool in the upper right hand corner of the Mail View no longer works...It will allow me to search the "from", "to" and "subject" lines like any old mail program would, BUT the "Entire Message" option returns on results. There must be something special about the Library folder in my Home folder, because I haven't restricted my spotlight settings. In fact with the disk mounted, I even re-indexed my WHOLE computer just to see what would happen. Spotlight is able to search for FILE names on my encrypted disk, but the search "Entire Message" still doesn't work...are there any solutions? I've spent a great deal of time searching the internet for a solution to no avail. I feel like this question requires a real mac genius, but there are other people throughout other forums posting the same question with no answer. I'm no genius, but I'm not afraid of using Terminal if I'm told the basic gist of what should be typed there. I would love to see his answered fully. Thanks!
    Message was edited by: jennings

    Ahhh! The proverbial missing information. Thanks for clarifying. Apple always has plans to fix problems, but their timetable might not meet your expectations. I strongly suggest that you report this to Apple. Send Feedback and send bug reports and enhancement requests via its Bug Reporter system. To do the latter, join the Apple Developer Connection (ADC)—it's free and available for all Mac users and gets you a look at some development software. Since you already have an Apple username/ID, use that. Once a member, go to Apple BugReporter and file your bug report/enhancement request. The nice thing with this procedure over submitting feedback is that you get a response and a follow-up number; thus, starting a dialog with engineering.

  • HT5262 I encrypted my iphone backup but now the password no longer works

    I encrypted my backup, however the password no longer works. I know for sure that i have the right password as i wrote it down. I also checked my Keychain and it had the same password. Is there anyway i can unlock my backup?

    Problem solved by deleting Library\Application Support\MobileSync\Backup\*
    Password worked fine after this

  • Help: My password no longer works, and I am unable to log in with my Apple ID

    I have a macbook pro, and it has failed to start up for a few months until now.  When I get to the log in screen, my old password no longer works.  When I then try to reset it using my apple ID and password, an error message appears saying it cannot connect and to check my internet connection, but it gives me no option check or change the connection when this window is up.  Additionally, I have tried going into recovery mode and restoring from a backup I have on an external drive which did not work, and reinstalling Yosemite all over again, but I get a message that the disk is encrypted and asks for the password (again, a problem). 
    If anyone has any advice on something new I could try I would greatly appreciate it!

    Hi chc517,
    I'm sorry to hear you are having issues with your MacBook Pro. I also apologize, I'm a bit unclear on a couple things about your specific configuration. The message you mentioned about the disk being encrypted would seem to indicate that you may have File Vault enabled. If that is the case and you are having a login issue, you would need to use the File Vault recovery key to reset your login password instead of your Apple ID, as noted in the following article:
    OS X Yosemite: FileVault recovery key
    Regards,
    - Brenden

  • My iPad Mini with retina display suddenly will not connect to the Internet. It shows full wifi bars, yet no web pages will load. My Internet is working with all other apple devices in my house. The iPad also no longer works with celluar data.

    My iPad Mini with retina display suddenly will not connect to the Internet. It shows full wifi bars, yet no web pages will load. My Internet is working with all other apple devices in my house. The iPad also no longer works with celluar data. I'm not sure what has happened. It was working fine a few hours ago. I have tried resetting it, ive restarted my browser etc. I tried to erase all data from my Ipad but I can't do that because it needs to sign into my Apple ID and use the Internet!

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are drooping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Fix WiFi Issue for iOS 7
    http://ipadnerds.com/fix-wifi-issue-ios-7/
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    iPad: Issues connecting to Wi-Fi networks
    http://support.apple.com/kb/ts3304
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h Mt
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    10 Ways to Boost Your Wireless Signal
    http://www.pcmag.com/article2/0,2817,2372811,00.asp
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Some Wi-Fi losses may stem from a problematic interaction between Wi-Fi and cellular data connections. Numerous users have found that turning off Cellular Data in Settings gets their Wi-Fi working again.
    You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • After updating the iOS from 4.2.1 to 4.3.3 the WLAN connection to a Win7 Hotspot (Connectify) is no longer working in the sence that UPnP Apps like PlugPlayer can connect to a Media Server (Twonky) on the Win7 PC in a stable way. What to do?

    I created a backup of the iPod in iTunes before updating to iOS 4.33 but after the update I can not restore. The backup is no longer shown in iTunes. I think iOS 4.3.3 has some differences in handling WLAN due to the Hot Spot capability for the iPone 4 which might cause these problems.
    Please help. The only use of my iPod touch is to remote control my media network. And exactly that is no longer working the way it was before the update!
    Best Regards,
    Gerd

    Now this has two direct effects - firstly it has increased the 3g usage for data and secondly it causes 'blips' with the ability to connect to previously working wifi connections.
    Landshark2007 wrote:
    We have identified that 4.2.1 in the iPhone 4 has WPA2 key length issues.
    Although I have seen posts about the problem WPA2 key length problem, I am using an iPhone 4 with iOS 4.2.1 and have no problems connecting to my WiFi that uses WPA2 AES with a key that is over 20 characters.
    Landshark2007 wrote:
    There is also one other school of thought that we have which is to do with the increased battery performance on the iPhones. It looks as though the iPhone drops WiFi when it goes to sleep (ie: when it is turned off in normal mode).
    An iPhone will maintain a WiFi connection when in sleep mode if it is connected to a power source.
    I have no doubt that many users are experiencing problems with their iPhones. I just feel lucky that I haven't experienced any big issues with mine.

  • Remote Control No longer works after 10.3 upgrade

    I have begun pushing out ZCM 10.3 to my infrastructure and I'd like ask WHY the Remote Control Policy no longer works.
    The managed device was unable to initialize Novell encryption scheme for the session. Ensure that the managed device is UTC time synchronized with this system. If the problem persists, contact Novell Technical Services
    I had a clone with ZCM 10.2.2 which i upgraded to 10.3 and sent it back to my ZENimaging servers.
    What is going on here?? Why does this not work?
    Crippled help desk and p!ssed off Network Admin.

    Originally Posted by donasutton
    I have begun pushing out ZCM 10.3 to my infrastructure and I'd like ask WHY the Remote Control Policy no longer works.
    The managed device was unable to initialize Novell encryption scheme for the session. Ensure that the managed device is UTC time synchronized with this system. If the problem persists, contact Novell Technical Services
    I had a clone with ZCM 10.2.2 which i upgraded to 10.3 and sent it back to my ZENimaging servers.
    What is going on here?? Why does this not work?
    Crippled help desk and p!ssed off Network Admin.
    If the problem persists, contact Novell Technical Services :)
    Thomas

  • Apple Wireless Bluetooth Keyboard no longer works after OSX update

    After installing the latest OSX update yesterday (something about iChat encryption), Apple Bluetooth Keyboard no longer works with my iMac.
    When I restarted the iMac after installation was completed, the iMac would no longer recognise my Bluetooth Apple wireless keyboard. I've tried with 2 other Apple wireless keyboards as well, but to no avail. None of them work with the iMac any longer. All 3 keyboards work with my PowerMac Quad G5 though.
    The iMac "sees" the keyboards, but the pairing doesn't go through because the iMac doesn't seem to recognise the keystrokes when entering the pairing code.
    I had to go out and buy myself a Microsoft wired keyboard to be able to restart the iMac (couldn't enter the login password without a keyboard).
    My bluetooth mighty mouse works flawlessly though.
    Very frustrating. Can anyone help?
    ...tt
    iMac 24" 2.33GHz 3GB   Mac OS X (10.4.8)  

    And yes I checked the batteries.

  • EM dbconsole no longer works after RHEL 4 upgrade

    I'd been running oracle 10.1.0.3.0 and the EM dbconsole on rhel 3 WS/x86_64. After upgrading to rhel 4 WS (with non-redhat kernel 2.6.13-rc6), the database runs fine but dbconsole doesn't work. 'emctl start dbconsole' takes a long time to run. Connections to port 5500 time out; both emagent and the java httpd process are running though they tend to die after 30 minutes or so.
    I do see lines like this in emagent.trc
    2005-08-24 10:50:13 Thread-491528 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
    2005-08-24 10:50:43 Thread-491528 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
    2005-08-24 10:50:43 Thread-589832 ERROR upload: Error in uploadXMLFiles. Trying again in 176.00 seconds.
    2005-08-24 10:50:45 Thread-606216 ERROR upload: Error in uploadXMLFiles. Trying again in 211.00 seconds.
    2005-08-24 10:51:10 Thread-622600 ERROR upload: Error in uploadXMLFiles. Trying again in 253.00 seconds.
    Any suggestions?
    Alex

    Originally Posted by donasutton
    I have begun pushing out ZCM 10.3 to my infrastructure and I'd like ask WHY the Remote Control Policy no longer works.
    The managed device was unable to initialize Novell encryption scheme for the session. Ensure that the managed device is UTC time synchronized with this system. If the problem persists, contact Novell Technical Services
    I had a clone with ZCM 10.2.2 which i upgraded to 10.3 and sent it back to my ZENimaging servers.
    What is going on here?? Why does this not work?
    Crippled help desk and p!ssed off Network Admin.
    If the problem persists, contact Novell Technical Services :)
    Thomas

  • PPTP no longer working through Cisco 2901

    Up until yesterday, the PPTP VPN to our main office was working as ordered. 
    Yesterday our ISP statically assigned our IP address to us, and it went from ip address dhcp to ip address x.x.x.x
    Everything else works fine, internet and whatnot, but the VPN connection will no longer work.  It just times out.  I'm wondering if it's something in my config that is blocking it.  Any help would be greatly appreciated.
    As you can see, this isn't in anyshape or form an advanced configuration.  So I don't see what the problem could be.
    ! Last configuration change at 17:54:14 UTC Wed Jun 15 2011
    version 15.0
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    hostname RemoteRouter
    boot-start-marker
    boot-end-marker
    enable password xxxx
    no aaa new-model
    no ipv6 cef
    ip source-route
    ip cef
    multilink bundle-name authenticated
    license udi pid CISCO2901/K9 sn FTX1436819T
    interface GigabitEthernet0/0
    no ip address
    duplex auto
    speed auto
    interface GigabitEthernet0/0.1
    encapsulation dot1Q 1 native
    ip address 192.168.10.254 255.255.255.0
    ip nat inside
    ip virtual-reassembly
    interface GigabitEthernet0/0.2
    encapsulation dot1Q 2
    ip address 192.168.4.1 255.255.255.0
    ip nat inside
    ip virtual-reassembly
    interface GigabitEthernet0/0.100
    encapsulation dot1Q 100
    ip address 10.1.1.244 255.255.255.0
    interface GigabitEthernet0/1
    ip address x.x.x.x 255.255.255.128
    ip nat outside
    ip virtual-reassembly
    duplex auto
    speed auto
    interface Serial0/0/0
    no ip address
    shutdown
    no fair-queue
    no clock rate 2000000
    router eigrp 1
    network 10.0.0.0
    network 192.168.4.0
    redistribute static
    passive-interface GigabitEthernet0/0
    ip forward-protocol nd
    no ip http server
    no ip http secure-server
    ip nat inside source list 10 interface GigabitEthernet0/1 overload
    ip route 0.0.0.0 0.0.0.0 x.x.x.x
    ip route 10.1.10.0 255.255.255.0 10.1.1.1
    access-list 10 permit 192.168.4.0 0.0.0.255
    access-list 10 permit 10.1.1.0 0.0.0.255
    access-list 10 permit 10.1.10.0 0.0.0.255
    control-plane
    line con 0
    password xxx
    line aux 0
    line vty 0 4
    password xxx
    login
    scheduler allocate 20000 1000
    end

    The other side of the VPN is a TMG server hosted at our main office.  I can connect to it off site, and others were connected to it remotely as well, but for some reason users at that remote site can no longer connect to the VPN.
    I talked to my ISP wondering if there was something that was blocked due to the change from dhcp to static IP addresses, but they don't see anything.

  • Can't open a specific wesite with AES encryption on

    WRT54GX2 router  set up with WPA and AES encryption, will not open a website that I know is working (it's my ISP, webmail site).  When I change to TKIP the site opens normally, but my wireless printer then drops off the network.  Any one have a fix?

    I agree with toomanydonuts suggestion. You can try the steps which toomanydonuts has mentioned and i think that will make your computer and printer work wirelessly.

  • AES Encryption for Windows Phone

    Hi,
    We are developing a windows phone app and the same app is also being developed in Android and IOS. All three platforms are using a JSON web service for data access. Parameters to be passed are encrypted using AES algorithm.
    The web service uses the Encryption and Decryption as shown in the following link : 
    https://msdn.microsoft.com/en-us/library/system.security.cryptography.aesmanaged(v=vs.110).aspx
    The same is Encryption is available in IOS and Android and working fine.
    I am unable to achieve the same encryption in Windows Phone as System.Security.Cryptography is not available in Windows Phone. I did browse around and found a few alternatives as shown below but i am not getting the desired result i.e. Encrypted data is
    not the same and hence Decryption is not giving the same result in server side.
    public static byte[] Encrypt(string plainText, string pw, string salt)
    IBuffer pwBuffer = CryptographicBuffer.ConvertStringToBinary(pw, BinaryStringEncoding.Utf8);
    IBuffer saltBuffer = CryptographicBuffer.ConvertStringToBinary(salt, BinaryStringEncoding.Utf16LE);
    IBuffer plainBuffer = CryptographicBuffer.ConvertStringToBinary(plainText, BinaryStringEncoding.Utf16LE);
    // Derive key material for password size 32 bytes for AES256 algorithm
    KeyDerivationAlgorithmProvider keyDerivationProvider = Windows.Security.Cryptography.Core.KeyDerivationAlgorithmProvider.OpenAlgorithm("PBKDF2_SHA1");
    // using salt and 1000 iterations
    KeyDerivationParameters pbkdf2Parms = KeyDerivationParameters.BuildForPbkdf2(saltBuffer, 1000);
    // create a key based on original key and derivation parmaters
    CryptographicKey keyOriginal = keyDerivationProvider.CreateKey(pwBuffer);
    IBuffer keyMaterial = CryptographicEngine.DeriveKeyMaterial(keyOriginal, pbkdf2Parms, 32);
    CryptographicKey derivedPwKey = keyDerivationProvider.CreateKey(pwBuffer);
    // derive buffer to be used for encryption salt from derived password key
    IBuffer saltMaterial = CryptographicEngine.DeriveKeyMaterial(derivedPwKey, pbkdf2Parms, 16);
    // display the buffers – because KeyDerivationProvider always gets cleared after each use, they are very similar unforunately
    string keyMaterialString = CryptographicBuffer.EncodeToBase64String(keyMaterial);
    string saltMaterialString = CryptographicBuffer.EncodeToBase64String(saltMaterial);
    SymmetricKeyAlgorithmProvider symProvider = SymmetricKeyAlgorithmProvider.OpenAlgorithm("AES_CBC_PKCS7");
    // create symmetric key from derived password key
    CryptographicKey symmKey = symProvider.CreateSymmetricKey(keyMaterial);
    // encrypt data buffer using symmetric key and derived salt material
    IBuffer resultBuffer = CryptographicEngine.Encrypt(symmKey, plainBuffer, saltMaterial);
    byte[] result;
    CryptographicBuffer.CopyToByteArray(resultBuffer, out result);
    return result;
    public static string Decrypt(byte[] encryptedData, string pw, string salt)
    IBuffer pwBuffer = CryptographicBuffer.ConvertStringToBinary(pw, BinaryStringEncoding.Utf8);
    IBuffer saltBuffer = CryptographicBuffer.ConvertStringToBinary(salt, BinaryStringEncoding.Utf16LE);
    IBuffer cipherBuffer = CryptographicBuffer.CreateFromByteArray(encryptedData);
    // Derive key material for password size 32 bytes for AES256 algorithm
    KeyDerivationAlgorithmProvider keyDerivationProvider = Windows.Security.Cryptography.Core.KeyDerivationAlgorithmProvider.OpenAlgorithm("PBKDF2_SHA1");
    // using salt and 1000 iterations
    KeyDerivationParameters pbkdf2Parms = KeyDerivationParameters.BuildForPbkdf2(saltBuffer, 1000);
    // create a key based on original key and derivation parmaters
    CryptographicKey keyOriginal = keyDerivationProvider.CreateKey(pwBuffer);
    IBuffer keyMaterial = CryptographicEngine.DeriveKeyMaterial(keyOriginal, pbkdf2Parms, 32);
    CryptographicKey derivedPwKey = keyDerivationProvider.CreateKey(pwBuffer);
    // derive buffer to be used for encryption salt from derived password key
    IBuffer saltMaterial = CryptographicEngine.DeriveKeyMaterial(derivedPwKey, pbkdf2Parms, 16);
    // display the keys – because KeyDerivationProvider always gets cleared after each use, they are very similar unforunately
    string keyMaterialString = CryptographicBuffer.EncodeToBase64String(keyMaterial);
    string saltMaterialString = CryptographicBuffer.EncodeToBase64String(saltMaterial);
    SymmetricKeyAlgorithmProvider symProvider = SymmetricKeyAlgorithmProvider.OpenAlgorithm("AES_CBC_PKCS7");
    // create symmetric key from derived password material
    CryptographicKey symmKey = symProvider.CreateSymmetricKey(keyMaterial);
    // encrypt data buffer using symmetric key and derived salt material
    IBuffer resultBuffer = CryptographicEngine.Decrypt(symmKey, cipherBuffer, saltMaterial);
    string result = CryptographicBuffer.ConvertBinaryToString(BinaryStringEncoding.Utf16LE, resultBuffer);
    return result;
    public static string AES_Encrypt(string input, string pass)
    SymmetricKeyAlgorithmProvider SAP = SymmetricKeyAlgorithmProvider.OpenAlgorithm(SymmetricAlgorithmNames.AesEcbPkcs7);
    CryptographicKey AES;
    HashAlgorithmProvider HAP = HashAlgorithmProvider.OpenAlgorithm(HashAlgorithmNames.Md5);
    CryptographicHash Hash_AES = HAP.CreateHash();
    string encrypted = "";
    try
    byte[] hash = new byte[32];
    Hash_AES.Append(CryptographicBuffer.CreateFromByteArray(System.Text.Encoding.UTF8.GetBytes(pass)));
    byte[] temp;
    CryptographicBuffer.CopyToByteArray(Hash_AES.GetValueAndReset(), out temp);
    Array.Copy(temp, 0, hash, 0, 16);
    Array.Copy(temp, 0, hash, 15, 16);
    AES = SAP.CreateSymmetricKey(CryptographicBuffer.CreateFromByteArray(hash));
    IBuffer Buffer = CryptographicBuffer.CreateFromByteArray(System.Text.Encoding.UTF8.GetBytes(input));
    encrypted = CryptographicBuffer.EncodeToBase64String(CryptographicEngine.Encrypt(AES, Buffer, null));
    return encrypted;
    catch (Exception ex)
    return null;
    public static string AES_Decrypt(string input, string pass)
    SymmetricKeyAlgorithmProvider SAP = SymmetricKeyAlgorithmProvider.OpenAlgorithm(SymmetricAlgorithmNames.AesEcbPkcs7);
    CryptographicKey AES;
    HashAlgorithmProvider HAP = HashAlgorithmProvider.OpenAlgorithm(HashAlgorithmNames.Md5);
    CryptographicHash Hash_AES = HAP.CreateHash();
    string decrypted = "";
    try
    byte[] hash = new byte[32];
    Hash_AES.Append(CryptographicBuffer.CreateFromByteArray(System.Text.Encoding.UTF8.GetBytes(pass)));
    byte[] temp;
    CryptographicBuffer.CopyToByteArray(Hash_AES.GetValueAndReset(), out temp);
    Array.Copy(temp, 0, hash, 0, 16);
    Array.Copy(temp, 0, hash, 15, 16);
    AES = SAP.CreateSymmetricKey(CryptographicBuffer.CreateFromByteArray(hash));
    IBuffer Buffer = CryptographicBuffer.DecodeFromBase64String(input);
    byte[] Decrypted;
    CryptographicBuffer.CopyToByteArray(CryptographicEngine.Decrypt(AES, Buffer, null), out Decrypted);
    decrypted = System.Text.Encoding.UTF8.GetString(Decrypted, 0, Decrypted.Length);
    return decrypted;
    catch (Exception ex)
    return null;
    Both methods shown above are not giving the same result.
    I would require the following scenario :
    Plain Text : "login@123"
    Key : "0123456789abcdef"
    IV : "fedcba9876543210"
    Hex : 356F65678C82C137BDBB2A2C8F824A68
    Encrypted Text : 5oegåÇ¡7Ωª*,èÇJh
    Request you to please suggest alternative to obtain the same AES Encryption using a Key and IV in Windows Phone.
    Thanks in advance.
    Regards,
    Vinay D

    Hi,
    The encryption and decryption in : http://dotnetspeak.com/2011/11/encrypting-and-decrypting-data-in-winrt-2 is
    not giving me the desired result.
    I would require the following scenario :
    Plain Text : "login@123"
    Key : "0123456789abcdef"
    IV : "fedcba9876543210"
    Encrypted Text : 5oegåÇ¡7Ωª*,èÇJh
    But what i am getting from the above link is : 
    I would require the following scenario :
    Plain Text : "login@123"
    Key : "0123456789abcdef"
    IV : "fedcba9876543210"
    Encrypted Text : NW9lZ4yCwTe9uyosj4JKaA==
    As u can see the encrypted string is not the same and hence i would get a different decrypt string on the server.
    I cannot change the server as it is in production and working with Android and IOS.
    Regards,
    Vinay D

  • AES encryption with linux 64

    Hello
    We are using the AES encryption algorithm as one of our systems. To be able to use the AES did the installation of files and local_policy.jar US_export_policy.jar the JVM.
    On Windows and Linux 32-bit func, but did not work on Linux 64. returns the following error message: java.security.InvalidKeyException: Invalid AES key length: 31 bytes.
    The policys above are different JDK for Linux 64?
    What may be happening?

    I would suggest that you have not transferred your key correctly. You should note that keys are binary data and Strings should not be used to store binary data. It is possible that since you are using ASCII the two systems behave differently when converting a String to ASCII bytes. It would not surprise me if characters greater than 0x7f (which are not part of the ASCII set) are converted differently. Maybe somebody fixed a bug. Dump out in hex the bytes of your key created from key.getBytes("ASCII") in both systems and compare the two. I bet they are different.
    P.S. Please enclose the code in a pair of tags when posting code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • What configurations need to Enable AES encryptions on call on Expressway-e ??

    hi guys
    i've cucm 10.5 without token, on this cucm i've one sx80 registered, the cucm is configured to B2B call using one expressway-c and express-e, the b2b call work fine, but now i need configured aes encrypcion to call from SX80 to internet endpoint and viceversa.
    what configurations i need to enable aes encryptions on expressway-e?
    thanks.

    Which browser are you using? Do you have Enable Java checked in it's preferences? When you get a message it's a good idea to write down exactly what it says rather than dismiss it and wonder later what it said about something.

Maybe you are looking for

  • To convert applet-based application?

    Hi There are some tools on market to run an applet-based application on server side. Those tools convert the behavior of applet application to Jsp application. So they run the application on web server and send HTML to web browser. One of those tools

  • Embedding video in a gui (getting started advice)

    I have a project with a swing gui that i would like to embed a video screen in. the video will stream from a web camera and provide a live picture. I am new to the idea of handling video streams so have i come to the right place? what should i look a

  • Setting Emulator Size in Flash Builder

    I am coding an Ipad app in flash builder 4.5. The emulator is bigger than my screen (it is taller, than my screen), I am on a laptop.  Is there anyway I can adjust the emulator size to fit my screen. Tried dragging on the sides to resize, but that do

  • Where do I find the S/N on the box to reinstall Adobe Premiere Elements11 on to my new computer?

    I am trying to reinstall the Adobe Premiere Elements 11 on to my new computer and every number I have used from the box does not work.  Can you provide me with the one I registered and installed my Adobe with on the old computer. 

  • SMS - PC Suite back to Nokia

    Hi...  I had to restore my Nokia E72 and I save all my things to Nokia Suite and the phone numbers I got back to my phone, what about SMS ? Can I put it back on my phone? I tried SYNC messages but I think it only works to sync in to the Suite ...  Th