How to handle data encryption in Ranorex? - testing

I want to get encrypted-password from database for login in Android and iOS App.
I've made Username and password as data binding and by setting password-variable to the textField, I want the password to be converted/decrypted, to set password correctly, otherwise testcase will be always failed.
is there any built-in method/function in Ranorex for doing data encryption? If not, how to do it?
(I'm new in Ranorex and test automation.)

There is no built-in method to encrypt/decrypt. You will need to do this yourself in a code module file or recording module's user code action. You can use any third-party library to help with this if needed.

Related

How to write an app to altering Windows8 login options?

I'm looking to write an app that disallows some of the password login options (picture pw or pin) at certain moments - for myself and security reasons.
Any ideas how one would go about finding the APIs to use that can be run when the computer is locked and disallow a specific login option ?
I checked all classes under Windows.Security.Authentication, Windows.System.UserProfile, and Windows.System.Profile, but didn't see anything to toggle those login options. There are method to set the bg pic under Windows.System.UserProfile.LockScreen, but that isn't what i'm looking for - just the ability to toggle the picture pw and pin options.
If you want to alter the login process I believe you have to implement your own custom credential provider. There is a sample in the Windows SDK on how to do this.
You can find more info on MSDN.

OS X - Use mach read/write functions without requiring root/sudo

So I know it's possible to use vm_read_overwrite and vm_write without asking the user to type in their password every single time your app launches.
I have an app that does this. I know you need to sign your application, then a password dialog will be displayed if your app reads/writes another process. You generally type in the root password once and then the app runs as your local user.
My problem is I'm creating a new app, which I signed, but it's not posting the dialog for permission.
Am I missing another step here? Worst case I can copy/paste my existing project, but I'd rather not as it's quite large.
Thanks!
Found it, needed SecTaskAccess set to allowed in Info.plist
http://os-tres.net/blog/2010/02/17/mac-os-x-and-task-for-pid-mach-call/

Validate domain user/password in Installshield setup

I have domain,username,password as inputs. Any idea on how i can validate that the username exists and the password is valid via custom action in a Installshield setup. I am using a Basic MSI setup. I could not find any resources in the web regarding this.
You can do this with custom actions installshield includes in ISNetAPI.dll.
You're a better man than me if you can find any documentation on this.
Add it to your binary table from <ISProductFolder>\redist\language independent\i386\ISNetAPI.dll
I collect the domain, username and password and set properties to names that make sense to me. Then when the 'next' button is clicked, it sets the properties the action expects. If the username or domain is empty, it spawns a dialog telling the user. If all is well, we go to the next dialog.
Could write an Installscript or C++ CA and call the API function LogOnUser
http://msdn.microsoft.com/en-us/library/windows/desktop/aa378184(v=vs.85).aspx

API for username password keychain dialog in Mac

Is there an API that we can use that displays the usual username field, password field, and remember checkbox? This dialog can be usually seen when connecting to a server via Finder or when Safari requests for proxy information.
I am currently implementing this via CFUserNotification API to save myself from creating a window, etc. but I have to specify the fields and checkbox and retrieve them. What would really save time is an API that will abstract developers from having to worry about it. Does such API exist?
I don't think so. Actually I don't have an idea why apple should deploy an api for such a small task.
That's only a NSSecureTextField and a NSTextField. There are plenty of classes that help you add a password properly to the keychain.

Auto login to a website programmably?

I would like to make a vb .net application that auto logs into places and retrieves data from them. I have already succeeded in doing this by opening internet explorer programmably and tabbing to enter name and password. But this is messy, and needs to be well timed. I'm using VB .Net. Is there a way to interface with sites to auto login. Maybe I could inject a cookie, but then the browser could change. Any suggestions would be very helpful. Thanks
Well, it really depends on what authentication scheme the sites use. It is possible to pass a Credentials object with an HttpWebRequest which can be used to authenticate against sites that use basic authentication, windows authentication and similar. But I can't think of a reliable way that would work for any and all sites.
May not be something you'd consider, but the ideal tool for you is Selenium rather than reinventing the wheel and writing your own version in VB.net.
Best thing to do is have a quick look at that link, see what you think.
'In vb.net...add a webbrowser control. Then use
webbrowser1.navigate("www.gmail.com")
'Then in the webbrowsers document completed event paste something like this.
'where I wrote "123456" you will put the id of the html element for the username textbox.
'where I wrote "abcdef" you will put the id of the html element for the password textbox.
webbrowser1.Document.GetElementById("123456").InnerText = "yourusernamehere"
webbrowser1.Document.GetElementById("abcdef").InnerText = "yourpasswordhere"
webbrowser1.Document.DomDocument.forms(0).submit()
WatiN could be used for some of what you describe but I think almost anything will be messy unless you can find a way to do a silent login where some token is passed along to impersonate someone.
And CasperJS and PhantomJS may be a way forward too. Using a headless browser you can identify steps in JavaScript you would like to perform at a Website. Useful for interaction through to scraping.
Is there a way to interface with sites to auto login.
Yes, there is. Well, its just a POST HttpRequest or OAuth token.
You can always use direct POST requests with the required headers for any token auth. You can also test these command with cURL from the CLI.
~Without taking VB.net into account~, you can auto login to a website
by using:
Autologin via Keypass - http://keepass.info/ or https://www.keepassx.org/
Keypass automatically opens the login URL of the website, fill the login form and submits it.
Select website from your list, then press CTRL+U & CTRL+V - and you are logged in.